Added password support
Added retrying with new nick if nick is already taken. Other minor fixes.