Clean up skeleton and module import stuff

This isn't for merging, just to be used as a basis for discussion. Let me know if you know of a better way.
Ideally, the main file should do very little. It should just create the app, and optionally, attach it to the `window` object.