Added basis for Authentication. Tested in real world setting to produce ...

...small fixes. Connector is ready for real world usage.