Minor optimizations, code style and javadoc
Replaced javax.cache API with custom api

The javax.cache api was not final and the available implementations were
limited to specific versions of (mainly) EhCache. This made using the api
virtually impossible.
By replacing it with a small custom API, it is easier to hook in specific
cache implementations, such as EhCache.

Issue #AXON-229 Fixed