[CLEANUP] Clean up the cache clearing methods.

Also clear the cache when emogrify() is run.
Merge pull request #50 from jjriv/cleanup/cache-clearing

[CLEANUP] Clean up the cache clearing methods.