Semiflexible polymers and filaments: from variational problems to fluctuations