Initial implementation of the check-libs command

Use it as follows:

hit build -p something.yaml
hit check-libs something

@dagss, @ahmadia --- where should this go? It works as before, so we can start using it to purify our packages. But maybe there is a better place in hashdist where this should go.