Refactor server.
Facebook login and AngularJS