acpid: improve handler script.

- Accept PBTN/SLPB events too; power button now works in the BBB.
- Accept open/close LID events.