JC: added @view_in_config & @max_pagination to application controller. refectoring. spec passes.