partial progress on "invalid context" issue
allow hostname and relative URLs, closes #22