sqliterepo: fix TO-HONEYCOMB-586 (big sqliterepo bases)

Base transfers are now chunked (8MiB) by default.
Monolitic transfers are still supported.

Some return codes have been replaced by constants.

Change-Id: Iecc45841bdd333f5d45bd101c68255c8c14d9111
client: fix meta1 timeouts and a memory leak

Change-Id: I1b3e069bfca183b186b42a36002f71a8f2f9f558
(cherry picked from commit 56fa88b8e8da97418d2022b201d177eb48fc023f)
Several fixes and improvements

JSON fixed for service_info.
Finer decache in resolver.
m2v2_remote_touch_content fixed.
m2v2 does not generates events when disabled.

Change-Id: Ib145ba973ad7d9f3810c4c0fa4f30f1be1ff4639
Remote API reviewed.

We now provide a new set of API with a uniform style.
The main benefit is now to handle session ID's in all RPC.
These session identifiers are already handled by the redcurrant daemons, and propagating a single session id in all the requests belonging to a single session really helps to consolidate the logs.

Change-Id: Iec8969fed2f1280822d92d1575ccf7e15b46cd42