Upgrades to Rails 4.
Adds CORS support for browser XHR.
Adds `from_id` to channels.

The channel `from_id` is used on outgoing messages as a public ID
for the message's author. We don't want to disclose the author's
channel ID, so this is a stand-in.