Remove local storage and export data from DB into data dir

Signed-off-by: Chris Borrowdale <chris@chrisborrowdale.co.uk>
Use bcrypt for password hashing

Signed-off-by: Chris Borrowdale <chris@chrisborrowdale.co.uk>
Remove login and use factory

Signed-off-by: Chris Borrowdale <chris@chrisborrowdale.co.uk>
Tidy up controller and factory

Signed-off-by: Chris Borrowdale <chris@chrisborrowdale.co.uk>
Register the user

Signed-off-by: Chris Borrowdale <chris@chrisborrowdale.co.uk>
Fix to password encryption

Signed-off-by: Chris Borrowdale <chris@chrisborrowdale.co.uk>
Set up for further API methods

Signed-off-by: Chris Borrowdale <chris@chrisborrowdale.co.uk>
Update data export

Signed-off-by: Chris Borrowdale <chris@chrisborrowdale.co.uk>