modules/astra: module_lua - code cleaning, module_stream - refactoring