Multiple interleaved changes.

- Removed user cache (will be partially reimplemented)
- Fixed bad bugs with group messages.
- Better debugging output of the broker
- Saving messages only once (doesn't really help in the situations where
        it's needed; might be removed in future)