Svdemo

add autodemo functionality to let server automatically log demos of all games, with an option to retain only last N maps
fix a few bugs