Fix #382: Exception when swiping Pivot header

The exception was caused by the PointerEventProxy executing its methods in
the wrong context. They were executed on the PointerEventProxy instead of
on the browser's eventObject.

Fixed this issue and added some unit tests for the PointerEventProxy.