API docs hotfix

Should fix #16

I also replaced calls to `file_get_contents` with `curl` since the github API won't reply with anything different from a 403 error without a correct auth token.

That has also brought me to introduce a separate build script that generates the token.