Remove trailing spaces
Add possibility to set an authentication token

This currently works only if params is a dictionary