Registration Script Redirect

The account registration script now redirects, never generating its own
HTML document. onsuccess and onfailure fields should be POSTed with the
registration request to override the defaults.