Completely remade the caching functionality.
Makes sure the surefireplugin runs with utf-8 encoding, due to failing test on OSX (Macroman Boman)
Fixes NPE when a discarded document is persisted.
Merge pull request #1 from laserval/new-cache

Fixes NPE when a discarded document is persisted.
Merge pull request #185 from jwestberg/new-cache

Completely remade the caching functionality.
Merge pull request #186 from jwestberg/tika-utf8

Makes sure the surefire plugin runs with utf-8 encoding in Tika stages