Added allow_registration toggle.

- default is true
- See issue #5217
- See companion change in leap_platform.