add tag functions to API

@fpillet @jarrodbell @CommandFusion

Added the tag functions to the auto complete library, and cleaned up a couple spots. Could you guys merge into your fork? Thanks!