A bug in lxml causes it to lose the doctype (even though it's parsed correctly). We therefore have to add it manually.
Merge remote-tracking branch 'origin/master' into 588-incorrect-height-of-text-input-fields
Template root directory is the directory where templating.py is located instead of being hardcoded
Added Douglas Crockford's json2 to enable json in IE 7 and older.
Minor fix to entry page title so that it gets rendered correctly
Added a paragraph with some CSV recommendations (and a link to more information)
Added a jquery cookie script loader in old template layout
Merge pull request #602 from openspending/601-c-dataset-label

Minor fix to entry page title so that it gets rendered correctly
Merge pull request #589 from openspending/588-incorrect-height-of-text-input-fields

Doctype declaration added
Merge pull request #612 from openspending/521-show-csv-requirements

Show more information about recommended csv format
Merge pull request #608 from openspending/607-jquery-cookie-in-old-templates

Added a jquery cookie script loader in old template layout
Merge pull request #603 from openspending/525-ie7-json

Added Douglas Crockford's json2 to enable json in IE 7 and older.
Merge remote-tracking branch 'origin/master' into 597-directory-neutral-templating
Add abspath call to the dirname in case the path happens to be in sys.path for some weird reason (if it's in sys.path __file__ will return a relative path instead of the absolute path).
Fixes #597 on github.
Merge pull request #600 from openspending/597-directory-neutral-templating

Template root directory is loaded based on file position
Merge remote-tracking branch 'origin/master' into 549-enable-source-removal
Disable a button (with message) when source is being run to avoid loading the same source again