Integrability and local bifurcations in polynomial systems of ordinary differential equations : doctoral dissertation