Various fixups needed for functioning set up

Hi, this branch contains a number of small changes I needed in order to get to the point of having a functioning ipa server working.