[Autotest] Add touch event support to touch_ScrollDirection test.

Add a event test page that is a modified version of
rbyers.github.io/eventTest.html.  Some parts of the code that did
not make sense in this context were removed, like the UI elements.
Some functions and variables were added to make the interaction with
autotest easier.

This page adds event handlers to events we might see during an
autotest.  It saves relevant information about these events in a log.
The autotest can reset the page, ask for those logs or query net
page information, like total scrolling seen or event counts.

Add an EventsPage class.  The test base class instantiates this
class to abstract away the specific page interactions.  The
EventsPage class provides some common use case functions, such
as getting information from the test page or setting certain
behavioral variables.

Finally, modify the touch_ScrollDirection test to use this new page.
The intent is to move other tests behavioral tests to use this page.
Once that is true, the now duplicated functions in the base class
(such as detecting scrolls) can be removed.

TEST=ran on several devices
BUG=chromium:583437

Change-Id: I9822effe1b741f3666c364df56599e8ddbe636c5
Reviewed-on: https://chromium-review.googlesource.com/325446
Commit-Ready: Katherine Threlkeld <kathrelkeld@chromium.org>
Tested-by: Katherine Threlkeld <kathrelkeld@chromium.org>
Reviewed-by: Mussa Kiroga <mussa@chromium.org>
4 files changed