improve the helper code for extracting properties from maven so we can do more flexible key transformations (e.g. for labels in kube versus env vars)

improve the helper code for extracting properties from maven so we can do more flexible key transformations (e.g. for labels in kube versus env vars)