Get list of images only once

The cache images are either going to be there at the start or they won't
be there at all.  This greatly speeds up building, especially on Docker
0.7.3.
Added --skip-cache option
Added clean option

This option will clean out old build images if possible.
Fixed indentation