Add reload garbage test.
Merge remote branch 'upstream/master' into expand-battery-7
Merge remote branch 'upstream/master' into expand-battery-7
Test runahead is being enforced correctly.
Add runahead reload testing.
Add queue size testing.
Retry testing.
Load the Jinja2 'do' expression-statement extension.
Replaced the pickle reg db with simpler flat files.

Closes #327
Added a script to upgrade old-style reg dbs.
Handle corrupted reg db files.
Merge pull request #761 from arjclark/expand-battery-7

Expand test battery 7
Added tests for jinja2 do extension and command line set.
Fixed a reg function name.
Merge pull request #764 from hjoliver/replace-regdb

Replaced the pickle reg db with simpler flat files.
Fix path to registration DB

Looks like #764 misses 2 places.
Merge pull request #765 from matthewrmshin/fix.764

Fix path to registration DB
Hot Fix: don't abort the DB upgrade script if a new DB exists.

This affects only the new upgrade-db command. Any cylc db operation
creates a DB if one does not already exist, so the upgrade command
should create a new-format DB if necessary or otherwise just re-register
old suites in the new DB.
Test (not just load) jinja2 do extension.
Merge pull request #762 from hjoliver/jinja2-do-extension

Load the Jinja2 'do' expression-statement extension.