Simple model layer for AngularJS applications