Write timedmsgqueue interface, begin implementing queue