Use cache instead of session.

- Remove application helper which handled the session code.
- Add cached_data_for method to the model.
- Use the new method instead of the Application helper methods.