Template System

Add ability to use moustache templates
Tidying up server.js

Moved markdown processing to markdown.js