Prepare for package releases by having a central version number.

Also refactored the %IRSSI code to remove duplication.