added viewport for larger world
fixed pathfinding issues

- main thread now checks for the ready and waiting status before sending
any new path queries
modified pathfinder to take world size on grid update
fixed mouse screen coords conversion to world coordinates
fixed map to work with a viewport camera
major optimizations, cut back on DOM manipulation