Bug 961642 - [httpd] import registerPrefix from upstream r=yurenju

import changeset from http://hg.mozilla.org/mozilla-central/rev/e840ffbba8d1