Surface Viewer no longer sets window.onresize

New method viewer.updateViewport() to set viewer size and fix aspect ratio.
Closes #223.