Dev update.

- Fixes from master.
- Various new things, including automatic gamemode vote - see commit log.