re-write exec resources to improve readability. closes gh-4.
bring variables in-scope to improve readability
move init script-related parameters into params.pp