Adds context data to pages.

 This way, you can have lots of useful data in your site generated by outside services. In addition:

* Added a test
* Fixed a bug when a non-HTML file was in the input/ directory.