Added pause/resume functionality

Pauses automatically when activity loses focus
Added pause/resume button