complete rewrite

* dock has been completely rewritten, most api was changed
* proper test suite was added
* proper documented api was added (dock.api)
* command line was added
* management of build images was added

Fixes #10 #8