Custom spawner

Spawner functionality should be finished now.
See individual commit messages for more information.
@Nauxuron