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.
Merge commit '09465e50649ce72baed1c22e52d608942c5984bd' into HEAD