reference architecture for hypermedia and angular.js