Fixed a race condition, that was messing up the spec id in data.js.
Added a helper script to rebuild books that include the required javascript libraries.
Fixed a race condition that meant only some content specs would be added to the data.js file.