Enhaced/fixed js library. Now on_close and on_error events pass the event straight. Tests added and fixed for this too
Merge pull request #100 from imton/master

on_close and on_error events fixed
Update jasmine gem to fix Travis build.
Fix Logging spec by stubbing Time.now with a real Time object.
Remove ruby 1.9.2 from travis.yml since Rails 4 requires > 1.9.3
Don't call unloadable on inherited controllers if Rails.version =~ 4

Fixes #101 RuntimeError (Circular dependency detected while autoloading
constant EventsController)
Add #close! method to WebSocket and HTTP connection adapters.

This provides an easy way to close a connection from within a
WebsocketRails Controller by calling connection.close!. This works
with both WebSocket connections as well as streaming HTTP connections.

This closes #99 and closes #15 as well.

As far as #15 is concerned, the pull request submitted by @imton
takes care of managing disconnects on the client side cleanly.
Granted, you still need to manually resubscribe to any events
after you reconnect. The next step will be to manage reconnects
better internally within the JavaScript client.
Bump version and update CHANGELOG for release.
Properly handle connection state and add .connection_stale function

The `on_close` and `on_error` events now properly set the connection
state to 'disconnected'.

I also added a .connection_stale() function for easily checking whether
or not the connection is active.
Update version and CHANGELOG for release.
Mention which IRC network #websocket-rails is in.