Detect hostname and scheme correctly.
Add readme.