Added direction attribute so that direction of walk can be controlled by user.

Handle direction attribute as left (scale(-1,1)) or right (scale(1,1)).

Removed separate functions for event listeners where not required.

R=alancutter@chromium.org

Review URL: https://codereview.appspot.com/52900044