Move setting version on URL to keyToPath

Based on work from @derekchiang this moves adding of the 'version' value to the URL from getHttpPath to keyToPath because the location of version is directly related to the 'keys' request. Needed to implement any of the 'mod' requests.