Angularize and create REST API

Switching the application over to a REST API and AngularJS.

Only switched the Agent UI pages over to Angular and REST so far.

Paging and nonce not yet implemented in REST methods.