reusable angularjs base for dashboards SPA