Started revamping timer code

Adjusting code to better manage the activity lifecycle so that alarms
persist if the app gets closed