Add config file and automatic oauth support