improved SwitchTo in error case
rds: removed unused variable
rds: added app context

* moved global connection id counter to app context
pbrpc/icp: allow async response for received calls
rds: added support for switchto from sm