Periodic solutions and bifurcations of delay-differential equations