HAL client for angularjs