Add custom_fragment parameter

The parameters are often limited in what they can express. this allows
custom templates to be used for the configuration
Merge pull request #89 from hunner/add_config

Add custom_fragment parameter