Generate stable node IDs and move role registrations to KommaModule.

Change-Id: I66271702deb99fad22913d166e54800ffeca5360