Code style changes

Fixed test for newline changes
whitepace
breaking up some long lines
1.9 lambda syntax
alias_method over alias
use && || in if statements
unless over if !
removed unused variables
%( over %Q[ or %{
renamed inner loop variable to not shadow outerloop

Contentious changes
-------------------

reduce over inject
find over detect
replacing multi-line blocks with do/end even when chained
change do..end chaining to { }
For enumerable change find to detect

So that we can differentiate between AR find and enumerable find.
Merge pull request #496 from alphagov/code-style-changes

Code style changes