Inject markets into view

Validate session logic.
Misc cleanup.