added support for angular resource in base and app.js
added resource