Cleanup of existing functionality

use already existing freenode plugin, instead of own functionality in irc.js. move classes (*js) from main directory to lib directory.