Switched all messages to use constants, modules emit messages when they are started, added test