Code style changes

* Fixed test for newline changes
* whitespace and new lines
* 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