clean up --config handling

In reference to a363d9672f2be9de44cd1d3b3ae1fa1e69c1c5c9. This helps preserve
modularity/readability by avoiding contamination of the subcommand logic with
beets-specific logic.
fix testability of main entry point
changelog for config priorities (#513)