add support for scheme, servername and port
add support for AEM context callback for setup and teardown