Sensing and quantum state synthesis and processing in cavity optomechanics