Implement shake detection

The following PR implements a way for Moti to detect shake detection on the XYZ axis.