Lua stuff: added mg.onerror, include renamed to mg.include

- mg.onerror, if overridden, lets the user trap syntax errors and
  other loadbuffer errors, and dump stack traces and and debug info
  for uncaught runtime errors.