Hoist variables in Lua lump caching function.

Fixes GCC.
First stab at Lua video library.

Currently just contains a patch drawer.  Also, store lumps as buffers
instead of strings.