Updated the README, and add an err.data to return a cleaner JSON object when API gets an error
Added debug check in the error handler. This keeps the debug flag in the config.