Porting to PircBotX 2.0 (and formatting)

Simple mending of the code to fit it to the new PircBotX 2.0 stuff.
And some code formatting like removal of trailing whitespaces and such.