MODE-1791 - Added the "readonly" attribute to the connector hierarchy and implemented support for it in the base connector class

Also, updated the JSON schema to support it.

This should be merged into 3.1.x and cherry-picked into master.