set terminal properties prior to urwid's mainloop

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Remove remaining unused shell code

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
return proper ssh genkey error

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>