extracted feature.xml creation to utility method
fixed delegation of dependency configuration

...when using the platform.bundle configuration mechanism.
This fixes configuring a dependency, e.g. making it not transitive or
excluding specific transitive dependencies.