Some minor changes in caps plugin.

Some minor changes in caps plugin.
1. don't initialize _cached_presence in constructor;
2. don't call getItem twice;
3. transfer to a signal handler object instead of a string.