Updates linoise to go1.1 and the latest changes to kless's term package.

Okay so this is a lot of changes but I tried to consolidate keep them seperated by go1.1 updates and term package api updates.

It's possible that it's not completely correct yet though so feel free to make suggestions as needed.