Stories/or/snippet preview

Fixes https://www.pivotaltracker.com/story/show/78992008

@jdevalk could you please review?
All the variables above need to be documented.