Move code out of index.html

Refactored JS from index.html to app/App.
Refactored CSS from index.html to app/resources/App.css
Created app/App widget.