Better config file system
Random seed, server id and session id
Some code cleanup