fix prompt completion handling misbehaving with history
Improve ctags support

* cleanup tag command
* add a tag-complete command
* add a gentags command for launching ctags in the background