improve gesture detection
handle pivot for Viewport.rotateMap() and .scaleMap() consistenly
no Closable for socket until Java 7

fixes #30