Extract relpathToVersion to toplevel

Just cleaner.
Write meta.json from task.js consistently

The autobuilder had leftover code to create a meta.json, but this is
wrong - task.js knows all of the information.