Print request query parameters not only for GET methods

* also fixed numerous ruby warnings