Rebase of #34 - export setenv entries

Make sure setenv entries have `export`, and update tests accordingly

Fixes puppetlabs/puppetlabs-tomcat#34