Removed sqlite permissions check and debug handler

sqlite permissions errors now get caught by the appropriate Exception
handler, debug is now handled by alert()
Removed sqlite check from config_default
Merge remote-tracking branch 'upstream/wip'