Set RAILS_CACHE_ID to the current revision if available.

This will ensure unique etags/cache keys.
Add TODO about expand_cache_key.

[ci skip]