Added authentication option (untested), fixed bug that caused github file discovery to fail.