Rewrite all syntax to Ruby 1.9

GitHub #50