Added support for metadata, but haven't actually worked out a mechanism
for sending it to the client.
Added long polling for metadata (although it's not displayed client side
yet) and worked out gevent integration.