Updated registration.

Update registration to work with cross-domain calls. Work still in
progress.