Fixes #391
Add patch support and resumeable sha Implement all actual registry methods Add a simple database generation option