[#589] Fixes DeprecationWarning on ckan.lib.app_globals

Instead of calling config.debug, we need to call config['debug'].

Fixes #589.