Define templates once and use them both on client and server - fixing #4
Merge pull request #5 from matthew-andrews/shared-templates-#4

Define templates once and use them both on client and server - fixing #4