Adds SSL support and basic auth support