Add FindNearestCommand.

It finds the command heuristically, first by prefix, then case insensitivity, then minimal levenshtein distance.