Building a UI framework for a large scale application using AngularJS