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
Merge pull request #2 from DrTom/master

Support url variants and https