Merge pull request #1 from DrTom/master

Fix getting attachment streams
Mocking with basic auth.
Support url variants and https

* the api can use a path like '/api/v2/executions' or a full url like
  'https://ci2.zhdk.ch/api/v2/executions' for refs; this now supported

* support https or http (still default) by specifying the schema with
  the host parameter