Well, the hinge stuff is handled by a daemon called switchevd... apparently it's part of a package from OpenZaurus called zaurusd. There's configuration scripts for it in /etc/sysconfig/clamshell, should be pretty easy to figure out if you've played with the APM scripts.
(Time to edit the Wiki, I guess.)
For suspend/resume, well, I haven't found any of that yet. There's a lot of power-related patches to the kernel - it might not even be user-configurable. I'll keep poking around. However, the APM scripts still work if you call the apm command to handle suspend/resume.
Switchevd certainly does NOT handle the power switch... it's somewhere in the kernel, I'm pretty sure.