Several more backend changes
Several more changes for the back end.

Adding a config file for default users and writing more validation and
utility functions.