Nanocavities for Molecular Optomechanics: Their Fundamental Description and Applications