Added function to listen for the headset button.
Only works when the activity is the foreground.
Added headset support for services not just
activity. Not fully complete.
Started to repackage everything