Huge revamp of the scripting system, started working on recursive 
syntax checking of function calls