ISPN-4046 Extend the remote query quickstart build to create the protobin descriptor automatically

* Also do some minor refactoring and beautification