Fix UserModel.cpp to use getpwent()

Per open bug report #123

Also fix some problems with passwd struct argument
per comments from @aavci1
Merge pull request #141 from Teknocrat/getpwd-support

Fix UserModel.cpp to use getpwent()