Rotation improvements.

We now dispatch a notification to interested parties when the device rotates.
And we also report the correct screen width/height when rotated.

I'm not sure the right thing is happening when a rotatable app starts up in
landscape mode, but I'll sort that out shortly.