Moved settings to Configuration -> System. Changed cobalt to Cobalt in help text.
Fixed some scoping issues and improved error logging.
Use drupal_json_output() to set correct headers - Fixes an issue where devel module added info to the json output.