Add sending lines to log output, lua error handler
Code optimizations

 * Shrink IRC message parser, make it RFC compatible
 * Remove obsolete code
 * Rename some types and functions to make more sense