Prevent duplicate slashes in URL
This removes a slash at the end of api_root and also strips possible
slash at the end of server_url. This was causing duplicate slash when
querying LB and LB throws 404 in those cases instead of treating it
identically