Delta time

Added support for deltatime in Lua scripting. All Lua scripts now have a
'dt' variable that contains the delta time in seconds.