Reworked border and padding so that runtime changes can be made.

Got layouts working with border/padding.