Fixed routing, added component.json,

Also explicitly set app to be at the window.
Many thanks to @stephenplusplus