copy appropriate shell based on user and default shell as well as rc and profile files for shell to the jail environment. detect system text editor and copy it to jail. add usage of full paths to binaries. also detect nologin on system and move to jail. cleaning up code as well. big commit!