Implemented string.gmatch

Fixed gsub gmatch mixup
Moved metatable logic to LuaThread

The preferred way of getting metavalues is trough Platform.getMetaValue,
instead of indexing the metatable!