Now the GitHub API URL is only mentioned once in the code

That should make it easier to avoid typos in the future.
Made local echo disabling only work on Unix
Cleaned up API calls a lot