Added prepublish script

This lets us build before publishing a new version of dorsal.

@gagoar Should we also rebuild the github pages or anything?