Move from monotonic timer to TimerImpl.

Change-Id: Ia48b641c13a7f675211603ac9d5b9ada45359e3b
Merge "Move from monotonic timer to TimerImpl."
Plug a couple of leaks in xmpp

Change-Id: Ibaa3540cd3e7c30c763fe696c49e42000371a4eb