added events; added shouldInvalidate method to QueryCache
model cache is now configurable