src: Enhancements

- Make libcurl pipeline the requests, slight increase id_to_username()
  performance.
- Restructure the previous code and make it more readable