Refactor isEntity and clone methods of jid.
Throw exception if user forgot pass storage in caps plugin constructor options.