Groupchat

add groupchat module
I think it's better to make all the `*_to_json` function return `binary`. Why?
1. callers don't have to call `list_to_binary/1`
2. you don't have to treat `[ ]` specially (but you DO have to check if the result of `mochijson2:encode/1` is of type binary)