Refactor tat function.

* Adds in ability to create new session if it doesn't exist.
* Adds in tab completion for created sessions