AngularJS Reference Architecture