Remove un-needed duplication in notes and comments controllers
Introduce caching for user avatar urls.