Updated scripts

Allowed dofile to check relative to current root and then project root
(so dofile "editor/something.lua" will get from the project editor
scripts directory)

Moved the editor script loading from C++ to lua (greatly reducing code)
using the above functionality.

Added some extensions to lua tables