Refactored url construction.

This is an attempt to make the construction of urls simpler by doing most of the operations on a `Hash`, avoiding the use `String#concat`.

What do you think? Any ideas to improve upon it?

//cc @dkonishi @cassiomarques