Better cache key handling

- calculate keys in generic cacher
- avoid collision in cache key between presence and userinfo modules