Reworked Lua system, added more functions to Lua API and tweaked some system functioning and naming. Tweaking.