Transition to World class

Fleshed out world.lua.
Thinned main.lua.
OO-ified entity.lua further, removed references to the global variable World.