package/lua: implement memory limits, scripts can use get_memory_limit() and set_memo...