Integrated sound and alarm with accelerometer

State machine is buggy - needs fixing!!! Lots of race conditions. But
it works.
iOS update