Import In_memory_events from ocaml-vchan

The implementation of a buffered ring will be functorised over
the EVENTS signature and will need an in-process implementation.
We should move this code into xen-evtchn and remove it from both
ocaml-vchan and here.

Signed-off-by: David Scott <dave.scott@citrix.com>