Implement exercises with unit tests. Improve build script a bit.

- Bug fix for docker not cleaning up images and not stopping containers