added interface to register message handlers when configuring bus with container