Implemented a PAM module.

This module exports the XDG_* environment variables required by GDM and takes care of starting and stopping a ConsoleKit session.