Variational Analysis of Regular Mappings: Theory and Applications