Refactored command usage

Moved more irc functionality out of core