Cache clearing

This is an extension of the last PR #27.

This adds only queries to the cache key and cache as well as `invalidateCache` to the Brainstem.Model.