Refactor ircserver to use spring and fix some minor problems