Move the code to check if an event is live to the common lib
Refactored the caching classes
Minor refactoring (moved InternalStorageFile)