Added a few Lua functions, attempt 2

Probably most noteworthy the production stuff and the FindXinCircle/Box functions