Beginning of conversion to AngularJS front end with pure json api endpoints.