Tied GitHub interaction to UI.

Also removed some dead code.