Text this: Large deviations, free energy functional and quasi-potential for a mean field model of interacting diffusions /