added message formatting functions to aqueue module and removed from
alarm and io_handler fsms