[MIG] Migration and enhancement of all modules involved in SEPA

This is a full migration of the modules involved in SEPA, most of it with the new API. It's a huge diff and I have made file name changes according last conventions, so GitHub does also a mess with diff. It has been tested in an environment for a week, so it's quite stable.