Refine stuff from yesterday...
Improve tab completion logic.

It now keeps a list of matching names to cycle through if you press tab
multiple times.