Added more config reading/writing. Should be nearly there.
Organised imports.
Forced presence of admin passwords in config, if read.
Fixed login issues.