JC: rspec passes. added session.html.erb to dummy. Removed apply_pagination and use @max_pagination instead.