Major refactoring. Packages, classes and tests.

Now using a different postgres server that is available outside of
schools ip range. Can help with testing of mobile apps and testing from
home etc.