Fix timer bugs

 - pause timer when app is backgrounded
 - persist timer and counter states between re-creates
 - disable timer pause/start when ended
 - disable timer long-click paste showing