ChatPlugin: code cleanup, added /nick command