remove obsolete prefix code and migrate remaining functions from amo.urlresolvers