Adding support for URI Templates (RFC 6570) in the apiURL, and removing the staging option