fixed invalid json & added config.js

Fixed it so that if you receive an invalid JSON message it won't kill the connection to the broker. Also move some of the settings out to a config file. Still need to move the googleapi key out to the config file as well.