Experimental offline mode (all git-based, no github dependency)

Signed-off-by: Solomon Hykes <solomon@docker.com>
Factor out DB initialization

Signed-off-by: Solomon Hykes <solomon@docker.com>
Use libpack.Open instead of libpack.Init

Signed-off-by: Solomon Hykes <solomon@docker.com>