Remotebackend ismaster support

Fixes  #1543