Refactor panZoomWidget and its testcases.
Bug fix doe imageResourceViewer.js.
More test cases for panZoomWidget.js.
Refactored imageResourceViewer.js.
Refactored panZoomWidget.js and prepared it for the upgrade to QUnit 1.15.