main web interface converted to use DeftJS controllers and injectors.

Refactored out transmission RPC service and Search services to packages so they can be shared by the new mobile web interface. Web service calls now use the promise api.