Cleanup doResize a bit

The typical: no var in a for-loop, missing comments
Remove HACK in Tiling.resizeTile

This broke min/max handling with the new resizing code
Keep client's width/height when min/max is violated

This is because min/max is sometimes not a valid size (because it
includes the border)