Split doss.local into core, sql and local packages

At some point we will start guaranteeing API stability for the top-level
client API (top-level doss package). Normal clients should never directly
use classes from any of the subpackages.
Construct SqlBlobIndex from a DBI not a Handle
Merge pull request #47 from nla/refactor-packages

Refactor package structure