Remove goroutine leak. Make sure termcap are reset each time.
Make a validation on links name
Remove useless New*Opt functions, singleline Opt types
Merge pull request #2827 from dotcloud/2778-fix-shell-corrupt

2778 fix shell corrupt