Extensions homogenization, clened up.

Rebased and cleaned up version of extension homogenisation. I will give some comments that should be fixed before merge now.
Remove or do not remove, there shouldn't be commented code (at least without a good explanation).