Check for --retina for java demo.

Sets the scale factor to 2.
Improved documentation.

I just love ascii diagrams.
Use ceil for available width and height.

This improves consistency with the computeSize phase. Most callers won't be affected, but now wacky
fractional background insets won't cause the edges of text to get cut off.
Fix text wrapping in background demo.