Regex is slow, start_with? is fast

The `[qQ]?` part of the regex was superfluous, as was the `i` flag.

Some code -- I am not sure which -- has been changed, so that the
`<<-` part of the regex is no longer necessary. There specs that cover
the heredocs are still in place though (and the code works with the
`<<` style heredoc as well, by the way).

What was left was `src =~ /^(%|\?)/` which is out-performed by
`String#start_with?`
Regex is slow, start_with? is fast

When checking the value of the first few characters of a string,
`#start_with?` is always faster than using a regex.
Regex is slow, end_with? is fast
Spec was using Tempfile without requiring it
Spec was requiring tempfile without using it
Merge pull request #1375 from bquorning/missing-require

Spec was using Tempfile without requiring it
Merge pull request #1376 from bquorning/string-methods-faster-than-regex

String methods faster than regex
[Fix #1350] Check that Blocks cop doesn't create syntax errors

The cops AndOr and Not share the same logic, but it looks like
their autocorrect methods are not capable of introducing syntax
errors.
Fix spelling error in spec
Merge pull request #1377 from jonas054/1350_autocorrect_blocks

[Fix #1350] Check that Blocks cop doesn't create syntax errors
[Fix #1352] Add regexp configuration to WordArray

The Style/WordArray cop can now be configured with the WordCharacters
option. Its value must be a Regexp character class (as a string).