Entity Lib migrated

Also got rid of bad practice of using lua_remove in
EntityLib::callFunction which was previously used to drop the target
entity, function name and nRes from the stack. Now they're left on (as
recommended to preserve stack state) and their presence is accounted for
when calculating nParams