Move Global $wp_http_api_test

I moved the global $wp_http_api_test declaration from the construct to
the management_page() call back.

The ajax script was not executing do the the conditional return located
in scripts($hook) function.