Implemented TimerLogic class

Moved event listeners and member variables from MainActivity class to
TimerLogic to encapsulate the data being pulled from the UI.

Not tested as working.