Flux dynamics and vortex phase diagram of the new superconductor MgB2