Fix NICK parsing and add a simple Config class