Added spawn_system.lua with a SpawnSystem class.

I also added a test spawn identical to the energy emitter. The factory function is defined in SpawnSystem:init, but I believe it can be defined elsewhere, perhaps in setup.lua.