adding support for multiple environments and forcing use of TLS 1.2
removing RBIS API suburi in anticipation of change in the API
minor refactoring