Dar 1732 - wall notifications performance

Major improvements:
- fetch the notifications in separate request, to reduce the main request server time
- fixed the bug with cache not being used in case the are no notifications
- when the memcache entry expired, it was not recreated - fixed

Additionally I've modified 4 methods to use a shared method for synchronizing memcache access