Fix pasting multiple lines containing tabs.

An example of what this fixes is pasting "\ta\nb"
Merge pull request #155 from finlob/origin/devel

Fix pasting multiple lines containing tabs.
Merge pull request #154 from Skrag001/devel

Added the set_token method
Function prompt need callback
revert last commit with better argument name
Add removed test code