Cleans up some of the BSON handling. Dispatches message decoding based
on mime type of the message (for HTTP) rather than by the path.
Enable the use of the binary encoding in the python scripts and libraries
for the remote controller.