This patch makes the AMS execution path work with the new DrmCrtc and DrmBuffer structure and solves major issues about
- VT switching
- DPMS
- Hot plugging
- Logout
- Memory leaks
It also aligns with changes made by @fooishbar to his WIP AMS branch for Weston, which I used as an example in the past.
In general with this patch AMS now should be ready for daily use.