Added allow_registration toggle.

- default is true
- See issue #5217
- See companion change in leap_platform.
Merge pull request #178 from fbernitt/issue_5217_allow_registration

Added allow_registration toggle.