Added AppMessageHandler for dispatching AppMessage objects to appropriate methods