updates to support mysql: changed session's "key" to "sessionKey" as the former is a mysql reserved word. fixed references to this in other modules. Also changed db.py to use db.type from the config URL: http://project.knowledgeforge.net/domainmodel/trac/changeset/63