Pātuhitia tēnei: Generalized optomechanics and its applications