Bug 1025792 — Handle API Versionning.

https://bugzilla.mozilla.org/show_bug.cgi?id=1025792
I would name this ``handleAPIRedirect`` or something similar.