Implemented time-based cache collection. Moved some files into src/dspace/core.