add waitForRemote option to caching.enable; fix argument name in baseclient.cache

this.remote -> this.storage
on not-connected

fix eventhandling for authorize

fix some tests

move not-connected event to WireClient

fix tests

rename notConnected -> notAuthing and add tests for it