Server side code refactor, updated with latest meanstack framework.

Make sure to run "npm install" in order to get latest framework. Server-side code was reviewed and refactored. I have also fixed minor bugs. All API calls are now protected with user authentication (defaults to admin role).