Added shared pointers to lua stuff for much less messy object management, and forced GC to prevent silly memory usage