New xwhen module with some ABCMeta love

Signed-off-by: Thameera Senanayaka <thameera123@gmail.com>
Implement MsgWhen

Signed-off-by: Thameera Senanayaka <thameera123@gmail.com>