Final code of viewport
Some viewport/mouse refactoring. New feature: specify widthxheight for open action
More refactoring with mouse and viewport stuff, also loading