Added tos environment info to subsystem init hook
Added base for memory mamangement, moved GEMDOS return value defines from header, added sub-system clean up hook