Add joinmessages handler

Currently only !quote and !setquote are supported.
Remove traling whitespace in api.coffee