impl. basic auth (fixed #6)
support SSL (not tested, fixes #11)