Some cleanup.
Exported create_channel() in server.c be globally available and made sure that spawn_with_channel uses it.