Make Hub.registration_timeout configurable

finish up PR #5303