#513 Fix some issues with registration.php
#536 New interface for registrations