Make it possible to customize behavior of bebop client via middleware.