Add deleteFacility command

Also fixes a bug in checking if the world is active (would always return
false)