Bug 1087918: Support power management and suspending

This patch fixes the configuration for power management and
suspending. Unmounting the memory card before suspending doesn't
work, so the card is kept mounted.
Merge pull request #15 from tdz/bug-1087918

Bug 1087918: Support power management and suspending