Adds logic for border-spacing and collapsed borders, adds border-radius and rounded rectangle backgrounds. Fixes a bug in collapsing margins.