Added User and Jobs schema. Enabled storing of users in db.

Tidied up api but needs to be refactored to move authentication concepts into separate file