added email config
started py github controller refactoring + auth