(PUP-3036) Rubocop Style/AndOr autocorrect pass

This PR replaces `and`  `or` and `not` keywords in favor of `&&` `||` and `!` where it
can be done automatically (In places where the semantic meaning of the
expression does not change on replacing the `and` keyword with the operator `||`).

This PR also makes the spacing of `!` operator consistent, changing
`! mymethod` to `!mymethod`

Since we are using `rubocop -a` to make the changes, we are assured of the
correctness of translation. These changes have also been individually verified.

Rubocop previously relied on the parser results to check the equivalency of new
and old constructs after autocorrect. However, for our purposes, it is rather
restrictive since parser can produce different AST depending on the context,
rubocop misses quite a large number of autocorrect possibilities. My fix to
rubocop involved supplying that context so that it checks for the equivalence
better. 

While incorporating parenthesis for method calls, I noticed that puppet codebase has not
standardized on a method call spacing. that is, I find instances of `method( ... )`,
`method(...)` and even `method( ...)` in different places. For the purposes of this
PR, I have used `method(...)`  (simply wrapping with parenthesis). Rubocop recommends
`method(...)`. After the puppet-dev discussion, the consensus seems to be the same, (but with spacing between arguments -- this will be taken up in a future PR)
The remaining violations are in these directories.
```
   1 lib/puppet/external
   1 lib/puppet/interface
   1 lib/puppet/module_tool
   1 lib/puppet/parameter
   1 lib/puppet/property.rb
   1 lib/puppet/provider.rb
   1 lib/puppet/reference
   1 lib/puppet/resource.rb
   1 lib/puppet/ssl
   1 lib/puppet/util.rb
   2 lib/puppet/indirector
   2 lib/puppet/network
   3 lib/puppet/property
   3 lib/puppet/transaction
   5 lib/puppet/settings.rb
   5 lib/puppet/type.rb
   8 lib/puppet/resource
   9 lib/puppet/parser
  12 lib/puppet/util
  17 lib/puppet/type
  23 lib/puppet/provider
```