Added state manager bits (but still not integrated yet). Added bridge for new irc commands.