re-negotiated login procedure for shell service

mostly network related work, though some wrapper changes were made as
well. the login procedure is now exclusively the property of the
protocol and the network manager knows nothing about it.