Genetic perspectives on symbiotic mechanisms of endophytic bacteria