Add spec tests and pass puppet lint, fix undefined variable

This commit adds full spec tests and passes puppet-lint

It also includes a fix for a long-undeclared $apache variable which caused parser failures in Puppet 3.