Require key

Look at https://github.com/fastly/fastly-ruby/commit/90e152aa186e14a2fe2793a35e89302eeb8854e0 for functional changes.
Since we're modifying this stuff here anyway, we might as well add in the URI.escape stuff from this PR - https://github.com/fastly/fastly-ruby/pull/36