Updates for newer Github API, bugfixes.