Bug 1002345 - [homescreen-stingray] initital widget frame support

* applications.js should be replaced with the WIP in bug 102355
* jsDocs still incomplete
* some test codes included in bootstrap.js for easy testing. They can be removed after reviewing.