Initial commit of PAM-based authentication; this commit just contains the low-level autentication code