Added basic touch event handling and sampling

Now the throwing distance is calculated once user releases the touch
from the screen. Y-acceleration is sampled and average is calculated
(some kind of average, at least). Needs fine tuning to yield results
that make sense.