Initial commit
Account for Render Border, and detect if too few tiles.

The render border is now taken into account when calculating the tile size, though there can often be strange resolutions and thus some strange tile sizes that are either non-square or far from the target size.

Also, when using CPU rendering (or BI), it'll tell you if there will be fewer tiles than rendering threads, meaning some CPU cores are not doing anything.