Merge pull request #1053 from selenamarie/bug828609-new-cron-submitter

modified submitter_app to take on cron_submitter's role
Revert "modified submitter_app to take on cron_submitter's role"

This reverts commit cb74acf19d93cd2161ed8e2279f91c0b3cb625b1.
Fixes bug 806994 - Added functional tests where missing in the middleware.
Merge pull request #1045 from AdrianGaudebert/806994-functional-tests-middleware

Fixes bug 806994 - Added functional tests where missing in the middleware.
First whack at models with sqlautocode
Change NullType to CITEXT
Added remaining declarative models
relation -> relationship, CITEXT
Recreating setupdb_app.py
un-plural correlations
Add in defaults for columns
Added first non-table objects, updates to server-side defaults
Add more types
Added ~140 UDFs to schema creation
Fixed mussed up regex
Add spaces and dividers
More docs
Added connection.execute and reordered functions
Added aggregates
Start of view support