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