Variational principles for a self-consistent theory of collective motion