typos in params means that data is saved correctly
Slight refactor + other bug fixes
Merge pull request #22 from mochimoshi/Alex-RedirectChatEndpoint

Alex - more bug fixes