Basic clamshell mode support.

- Listen to upower-glib to see if we have ac power, and check the lid
  state.
- Inhibit loginds handling of the lid switch when we have power and an
  external monitor.