Fixes to authentication and JS configuration.
Authentication: Make sure the database is open before calling sanitize.
Config JS: Handle jQuery not being the $ variable. Also add omega to the list of worlds.