added automatic credential schema tests with bad and good data examples. renamed 'username' to 'nick' as per irc norms. #119