New document properties page. Ready for testing and review. It has some corner cases, where it misbehaves (around scaling/viewbox), but otherwise it should be usable.