Delete more unused code:)

Unfortunately we lost all logging, but now this doesn't seem to be a
big problem.
Restore logging and delete some more code:)

We inroduced BuildWrapper class which reduces number of method arguments
and will help us to write unit tests in future.