Move widgets (and templates for them) to commons

Since they are not specific to home or main app.
Move streams.js to commons

Because it will be shared among home and app
Explode 'core' directory into main, home, and test pages

So now 'commons' is loaded for all pages.
Stuff in main/home/test is loaded only for those.
Rename application.html / .js to main.html / .js

To match how home is named.
Merge pull request #239 from typesafehub/wip/havocp-core-dir

Explode 'core' directory into the three pages (home, main, and test)