AngularJS client for a custom chat API