Refactor redis store to use Rails cache.
fix permissions for note sharing