Handle xrandr's primary flag when parsing output

On my setup, sometimes the flag "primary" is present in the output of
'xrandr -q', but this wasn't being accounted for in the awk script that
parses the output, resulting in invalid config output.

If the primary flag is present, skip over it.
Record rotation even if outputs are unrotated

Because this information is recorded in config dumps, it will mean that
rotation is explicitly set for each profile.

This behaviour is required for things to behave as expected when moving
from a profile with rotated outputs to one with those same outputs being
unrotated.

It also means that it can be used to revert changes made manually.