[bug 1042820] remove obsolete prefix code
and migrate remaining functions from amo.urlresolvers