Added possibility to use basic authentication
Got rid of tryRequest with its big number of parameters
The request is now done by composing multiple functions. Each of those
functions has a much more distinctive task rather than doing multiple
things at once as tryRequest did.