create a prepublish script that generates the properties.js file

This file will lazy-load properties but also specify the filename in the
require explicitly so that it plays better with browserify.

Should solve #11