Refactoring Ariel Portal with REST Web Apis and AngularJS