cdhistory: replaced fuzzy search with regex

Replaced the fuzzy search with a regex that gives me more control over the
matching and how I want to score matches
cdhistory: added validate_history function
fixup
cdhistory: moved refresh option order

The change here allows the refresh option to be specified with the matching
option. So the history can be validated before the match is performed.
Otherwise, the command would need to be called twice.
Merge branch 'working'