added IRC and cookie support amongst much streamlining