Put a stop to rampant version inflation

versioneddir.js needs to be the sole entry point for manipulation of
the build directories now, as it contains cached data.

Add an API to do what autobuilder.js was doing.