iOS accelerometer functionality working

finished porting in the accelerometer functionality to support the
"shake to reset" search funcitonality to the iOS platform.