Adding support for the --primary directive.
Fixing bug with finding best configuration.

An error occurred where a non-matching configuration was returned by
best_matching_configuration. It happened due to operator precedence which I
did not think properly through.
Adding test coverage for all the things!
Bump version.