improve publish to compile .coffee, copy index.html, and optionally build snapshots