Vortex dynamics in superconducting MgB2 and prospects for applications