Add Event class to WebSocketRails client.
Add WebSocketRails.Event object to store client event data.

Change the format of messages passed between server and client.
Change ridiculous WebSocketRails.Event description comments.
Add ability to attach success and fail callbacks to client events. *WIP*
Remove debugging statements from JS client.
Pass action exceptions to failure callback on JS client.
fixed a bug in event constructor
added on_success & on_failure for channels
added channel acception/denial helpers
added private channels support
added confirmation/denial arguments for channel subscribe callbacks #10
fixed a bug in channel callback
Merge pull request #10 from MhdSyrwan/event_state_callbacks

Add support for privately authenticated Channels.
Queue events triggered on the client before fully connected.

This makes it easier to bind to channels from anywhere in your client.
You no longer have to place the channel subscription code in the
dispatcher.on_open method to be sure it won't execute before the
WebSocket adapter finishes connecting.
Merge branch 'event_state_callbacks' of github.com:DanKnox/websocket-rails into event_state_callbacks

Conflicts:
	lib/assets/javascripts/websocket_rails/channel.js.coffee
Make sure there is an on_success() method defined before executing.
Call #triger_failure if client attempts to .subscribe() to private Channel.
Correctly merge the connection_id hash with optional data object on Event.
Provide better exception handling for AR::RecordInvalid
Don't convert exception data to json before triggering event.

The Dispatcher#extract_exception_data method was performing the
JSON conversion prematurely. It only needs to test that the
exception can be converted to JSON, not actually perform the
encoding.