Fixes for issue #40

Also added some debug logs to provide more info about the remote calls and the instance registry contents (app hashcodes) after refresh from server.