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

this.remote -> this.storage
add not-connected event to signal anonymous mode

fix eventhandling for authorize

fix some tests

move not-connected event to WireClient

fix tests

rename notConnected -> notAuthing and add tests for it

a

tabs to spaces