large refactoring, minor enhancements

Shell, encoding, and decoding moved to telsh.py, teldisp functions moved there.
SLC functions moved to slc.c, except those too tighty coupled