Added rm param to builds, fixed repo cache, added history support (don't rebuild previously built versions)