Refactor, mostly #with_params

/cc @sshillo @ciniglio 

Damn those badges... the code complexity jumped... I couldn't let it be. :/

- refactored #with_params, seems easier to read now
- refactored #httpsql_valid_params, as simple as it used to be