Add NW resize corner

Only 3 more to go
Move ratio logic to drawSelection()

So we can use it when resizing the selection as well.
NW resize works with ratios now
Restructure js for better speed

This should be much faster than it was before, but I could be wrong.
It’s happened before.
Add resize ability to 4 corners
Merge branch 'resize-selection'