Register previewing hook

Closes #100
Add example rails app

[ci skip]
Update CHANGELOG

[ci skip]
Merge branch 'preview'