Caching improvements

Added caching to tokenize

Changed bitmap caching to use hash - this is required when getBitmap is used with documents (otherwise you get invalid filenames).

Changed name of bitmapToTermsRaw caching to be consistent with API call.
nit: double quotes here and below

and `cache_file` -> `cachePath`