Added function for obtaining filelists in engine.
Removed debugging code in Engine.cpp and added partial GUI handling code to scripts.