Fixes/improvements in formatting, highlighting, & auto-refresh

Primarily enables syntax highlighting of code blocks (#3) and addresses issues with auto-refesh behaviour (#1) which make it much more reliable, despite the exceptions logged due to an [outstanding Python 2.7 bug](http://bugs.python.org/issue14574).