Initial support for the Mir display server protocol.

Currently, the following items are not implemented:
 * Paint clock support
 * Key modifiers
 * Support for more complex non-ascii keys