Reorganization of the EntriesController#index action.

The action has been subdivided into several functions. This will make it easer to implement HTTP caching in this action.
Added HTTP caching to EntriesController#index action
Do not send a parameter with the current time when requesting entries via Ajax.

This kept the client from leveraging HTTP caching.
Added HTTP caching support to FoldersController#show action