lua api

changed luastream manips to a luaM_ syntax
included luaState and luastream overrides for lua api functions
updated docs to acount for these changes