Added class to handle webbrowser messageloop.