bug fixes

tightened up the code for the remote shell service and the shell
application. it is now more or less fully functional, including the
ability for users to define their own functions separate from other
users in their own namespace