Add some helpers for registering views and commands.