add ssl and basic auth options

solves #2