Implement various additional wire protocol commands.

Logging
Orientation
Equals
ActiveElement
Touch events
Merge pull request #91 from ashleydw/master

Implement touch events and various other protocols (orientation, logging, equals, and active element)