some cleanup, reorg, and basic github oauth in