[ticket/11603] Fix spacing and add some comments

PHPBB3-11603
[ticket/11603] Split api_request into two functions (query only vs. full url)

PHPBB3-11603