set up as an application factory

needed to move things around to make it easier to
set up app factory for unit testing
set up as an application factory

more app factory config
implemented tests

some tests done, create user tests
implemented tests

more tests - create/query/delete user
fixed bug in connection error handler
refining test layout

fixed issues with database being dropped after running
the first test, db only dropped now
at end of test class
refining test layout

line layout fixes
adding tests

added test for Type definition api
bugfix

sorted issue with type interop insertion
Merge branch 'master' into dev-Autotesting
removed app compression

not needed - web server can do this out front
Merge remote-tracking branch 'origin/master'