Fixed up the apm parameter stuff to the point where I can at least register and unregister, and cache values of, global parameters. There's some really funky code here, I also took the time to have the unregister code use the unregister API in PL/[pg]SQL rather than roll its own.
1. Changed trigger functions from "opaque" to "trigger" to get rid of the warnings during initial install (only for acs-kernel, there are a lot elsewhere!)
2. Added "embeds" for postgresql and partially for oracle.
3. Added global parameters for postgresql and partially for oracle.