Add caching for diff file rendering
We should consider caching rendered diff file's HTML. Either separately or the whole batch of the rendered diffs (for efficiency). We should decide what exactly we want to cache, how and when to cache it and where to store that cache. The diffs HTML should be client-independent before we can cache it. We need to separate static and dynamic parts of the diff UI in order to achieve that.