Lots of refactoring. Added HTML export to github. Getting weird 409 errors.
Added a sleep timer to prevent race conditions with the github contents API.