Add some helpers to Rect

These will be used in rust-layers to simplify some things.
Merge pull request #50 from mrobinson/helpers

Add some helpers to Rect