Separates websocket stuff from event stuff.

Passes the websocket send function in partially applied with the necessary
connection object to give the events code a function that only takes a message
to be sent to the play, which is all the events code should care about. This
paves the way for altnerate connection types--telnet, for example!

Signed-off-by: Wayne <wayne@puppetlabs.com>
Move core functionality into core.

Signed-off-by: Wayne <wayne@puppetlabs.com>
Clean up handler/get-player-data.

Signed-off-by: Wayne <wayne@puppetlabs.com>
Adds basic telnet support.

This isn't really telnet, but line-delimited TCP which corresponds to a simple
"line-by-line" fallback mode in the telnet protocol. I think this may need to be
modified to allow simple telnet clients to negotiate non-interruptive
asynchronous messages from the server--for example, messages sent by
events/notify-players. I think the primary use case for this telnet interface
though is to facilitate testing.

Signed-off-by: Wayne <wayne@puppetlabs.com>
Modify gitignore to ignore emacs backup files.

Signed-off-by: Wayne <wayne@puppetlabs.com>
Merge pull request #21 from waynr/feature/events-refactor

Separates websocket stuff from event stuff.