Register previewing hook

Closes #100
Add example rails app

[ci skip]
Update CHANGELOG

[ci skip]
Merge branch 'preview'
Bump version to 1.7.0
Merge remote-tracking branch 'upstream/master'