Add start/stop button to animation example
Add start/stop button to animation example

Turn example function into a constructor, provide instance functions
to start and stop the animation and to re-layout the drawing without
stopping the animation.

Add a start/stop button to allow stopping the animation before
switching to another page and prevent it from running all the time.
Later we should start/stop on page show/hide.

Use resize listener to obtain actual canvas size instead of using
hard-coded width and height.

Change-Id: Id7bd4062c68d25a1e084f192bd363f41b2da97d0
Signed-off-by: Ralf Sternberg <787dd4af1300cc812dc7227f86eda8477264a73f@eclipsesource.com>
softnep0531/tabrisjs,pimaxdev/tabris,eclipsesource/tabris-js,paulvi/tabris-js,moham3d/tabris-js,mkostikov/tabris-js,softnep0531/tabrisjs,pimaxdev/tabris,eclipsesource/tabris-js,mkostikov/tabris-js,eclipsesource/tabris-js,moham3d/tabris-js