lwt: remove use of the syntax extention within the Client

We may be able to expand the IO module to include locks and tasks, and
functorise the Client over it.

Signed-off-by: David Scott <dave.scott@citrix.com>
Add an Ivar to the IO signature and implement for Unix, Lwt

Signed-off-by: David Scott <dave.scott@citrix.com>
Add a Mutex to the IO signature

Signed-off-by: David Scott <dave.scott@citrix.com>
Lwt-style client is now functorised

Signed-off-by: David Scott <dave.scott@citrix.com>
Functorised client supports RPC timeouts

Previously only the legacy Unix version supported timeouts.

Also: fix a resource leak in the Lwt client which was already fixed in
the Unix client (!)

Signed-off-by: David Scott <dave.scott@citrix.com>
'include Cohttp_lwt_unix_io' rather than duplicating it

Signed-off-by: David Scott <dave.scott@citrix.com>
Initial draft of Async support

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

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

Signed-off-by: David Scott <dave.scott@citrix.com>
oasis: remove lwt.syntax from one package, because it infects others

All files within the directory get the syntax extension applied, even
if some are from other packages/libraries which use other syntax.

Signed-off-by: David Scott <dave.scott@citrix.com>
Async: use Monitor.finally to release the Mutex

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

Signed-off-by: David Scott <dave.scott@citrix.com>
async: implement 'connect'

Signed-off-by: David Scott <dave.scott@citrix.com>
Switch all clients (except the legacy Unix one) to [ `Ok of 'a | `Error of b ]

Signed-off-by: David Scott <dave.scott@citrix.com>
Add an example async client

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

Signed-off-by: David Scott <dave.scott@citrix.com>
async example: don't forget to (i) perform RPCs; and (ii) exit afterwards

Two critical bugs in an RPC-testing program fixed.

Signed-off-by: David Scott <dave.scott@citrix.com>
Add some more OASIS cruft

Signed-off-by: David Scott <dave.scott@citrix.com>
test: add Async -> Lwt RPC test

Signed-off-by: David Scott <dave.scott@citrix.com>
async: add a server example

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