Adapted Publication class to the new Credentials class

darcs-hash:20090518140534-58103-b82319f424e62a591f43a9b53395c2a8ec5671e0