tweaks required for godaddy support

* add sysinfo page for debug
* make logdirectory and debug come from environment
* add db.session.remove() on app.teardown_request (fix Operational
Error?)