Refactoring + cleaning slightly. More pending.

Hi Argh.

I've refactored a little of your work here:

TODO:
- Move template into separate file.
- Move template logic into the template.
- Improve generation.
- Make use of caching so that we're not loading + parsing brand new markdown when we don't have to be.
- Error messages and fallbacks!
- HTTP status codes.
- Sanitisation.
- Let's stop hardcoding quite so much, eh? :)
Merge pull request #1 from antoligy/patch-1

Refactoring + cleaning slightly. More pending.