Updated stuff to prepare for AngularJS front end. Added some preliminary API routes