Add registerPrefix to Gaia's httpd.js

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