Move NSURL -queryComponents to Core.

[NSURL -queryComponents should be in Core, not SpecHelper](https://www.pivotaltracker.com/story/show/61946460)