Puppet 3.4 compability and option to disable exported resources

Staged in two seperate commits.