This is currently a rough sketch of the idea.
This module is usable but requires manual configuration via an include file right now.
Warning: This version is outdated.