WIP. Code cleanup.  Begin to cleanup legacy code.  Added libs to userpages to hold several potentially useful code fragments/libs.