CAL-812 Improve performance of calendar switching view and startup

Fix description:
- Remove reduntant JCR requests to databases.
- Optimize the JCR syntax of requests.
- Implementat caches to considerably decrease number of accesses to storage regarding calendars and events objects.