A Base Model for AngularJS apps (prototype)