Reorganize dimension vars 83

Fixes #83.

Simplifies the number of $P_* variables to just two, $P_primary and $P_secondary.

$P_primary operates on a base-16 grid.

$P_secondary operates on a base-12 grid.

New designs use them fairly heavily, and between the two of them and their multiples, I think we can solve most padding/margin problems.