Basic Lua stuff completed, including implementation of Advertise.