Fix for tmp directories on the Mac.
Cleanup tmp directories once finished, unless there was an error.
Move functionality from cli.js into new generator object, which includes a disk cache, and can be included in a server context.
Documentation. How many dots in the version do we care about.

TODO upgrades must have monotonically increasing version codes.
Turn off pro guard, for faster builds.