Add MouseHandler class to encapsulate all mouse behaviour.