Automatically flush the cache when an edit is completed.

This will remove the need for applications to manually flush
the cache.
Merge pull request #38 from JakeWharton/jwilson/autoflush

Automatically flush the cache when an edit is completed.