Bifurcation and index theory with applications to nonlinear differential equations