refactor twss plugin

move into one directory and move all references out of lib/
except for the baysian classifier class as other plugins may
want to make use of that.