Change environment to pp_environment

I don't think environment was actually being used anywhere except
for the two places I've changed in this commit.

Change the word development to dev to match pp-deployment.
Lint and style
Remove unused environment and machine_environment