Refactor command handling

Putting getattr to use rather than long strings
of elif certainly makes things look nicer, huh?
This also makes it easier to define if a response
should be a notice or a privmsg.