Moving the entire main.html view into multiple partials.
Added JS output service, restructured some stuff. See #40.