Personnel changes made negotiations tricky but the head coach and James King, director of football operations, proved pivotal to new deal