Shaved off around 100 KB of memory usage per Eterm by moving more code into the shared library, removing lots of unneeded variables, and fixing some small leaks here and there. SVN revision: 710