Makes the test's base url, user & password configurable through the environment. Abstracts differences between hosted and cockpit where possible to lib, and adds conditionals otherwise.