A Variational Approach To Coherent Structures In Unsteady Dynamical Systems