Fixed many Ruby warnings when running prawn under 'ruby -w'

* places where variables were shadowed
* places where instance variables are not initialized
* places with mismatched indentation
* places where deprecated methods are used
* places with unused variables
Merge pull request #554 from gettalong/ruby-warning-fixes

Fixed many Ruby warnings when running prawn under 'ruby -w'