improve the code generation of the kubernetes json using templates that ...

...are more flexible; including support for ports and environment variables. also move the template generator to a separate module so it can be reused directly outside of maven (e.g. for JMX use by hawtio)