Add timeout parameter & trim URL (#2666)
Add timeout parameter & trim URL (#2666)

A timeout of 10 seconds could cause issues with servers having a high `bcrypt_cost` configured in the config.
This adds a parameter to manually configure the timeout, defaults to 30 seconds.
matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite