Add CommandQueue logic

Use a priority queue for commands to ensure all important commands are
delivered and expiration of commands can occur.