added column channel_name (todo: use channel_id later)
send_to_channel now accepts whole message as parameter
edited create & new show action
added channel_id to messages table
using only message.id in channel on client side
add column "created_by" to messages table
messages association renamed to sent_messages
user association renamed to sender
specify class_name in sender association
many-to-many association between user and message
many-to-many association between user and channel (through subscriptions)
sample of webhook method
webhook route
adding state to subscriptions
offline users
offline users action + routes
using jbuilder for customised offline_users
refactored OnlineUserView for usage on online & offline users
refactored online + new offline users, rest of code commented - to be refactored
using pusher web_hook to update subscriptions