Add partials map.
Fix js.
Add template partials.
Refactor.
Merge pull request #53 from weso/template-partials

The templates can now be split into reusable partials.