cleanup the ruby code

things i did here

* [x] remove unnecessary whitespace
* [x] remove ruby warnings (ruby -w) (unused variables, ambiguous naming) 
* [x] remove hash-rockets and use new hash-syntax
* [x] remove unnecessary  `return` statements and method hashes `bla({:x => 'y'})` --> `bla(x: 'y')`
* [x] reformat with BeatifyRuby

@seanlinsley yeah, that would be much nicer