Refactored encryption and session helpers and moved them to core.
Added a PreviewTicket model for validation of preview sessions.