Fixed the connector, so it works seamlessly with async client.
Follow redirects is working now.
AppClient sample now works correctly with the connector.
Minor code cleanup.