brings script up to date with latest node-github version. fixes various bugs.