http://shellinabox.com/ library example, minimal edition.  Only echos back.  Use as an easier jumping off point.