Abstracted away get/set global.
Implemented `setglobal` and `getglobal` for Lua 5.2
Merge pull request #1 from c0bra61/lua52

Lua 5.2 support (from c0bra61/lua52)
spring cleaning
no more segfaults in lua5.2 with more than 1 thread