bytes.Equal should be faster than bytes.Compare.
Lock down CollectionFactory. #116
Make LocalRepo JSON-serializable. #116
Refactor by separating AptlyContext into separate package. #116
Close database before writing first byte to stdout. #117

Should fix conflict with commands like 'aptly xxx list -raw | xargs -n 1 aptly xxxx'