netdevsim: move device registration and related code to bus.c