Use lower-case hostnames everywhere
URL suffixes for response formats are depreciated in Admin API
Unit tests for request signatures

Fixes encoding of "~".