Add .idea to .gitignore.
Add initial caching exceptions.

Before running the page cache, certain cache exemption criteria are
detected. If a cache exemption criteria is met, the caching is aborted
and the page is served as normal.