Replaced php dependency with a single python script that performs the same shell commands and writes equivalent JSON blobs to the "api" folder.

Missing: IP, Top.