Create an actual mobj constructor function.

The function allocates a mobjinfo_t as userdata and sets its values from the passed-in table.
Fix a bug with loading more than one script out of a WAD.