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? :)