Moved validations & chart into separate methods.
User info & update API.

- Added GET /api/user for getting user's email & username

- Added PUT /api/user for updating email & password
Merge branch 'feature/visualisations' into feature/angular