Refactor app.js using AMD and Promises

 - add bower.json file which required packages