Complete rewrite based on Drydock; commit builder works.

Signed-off-by: Austin Seipp <aseipp@pobox.com>