Skip validation on relations

This fixes a rare infinite loop in Mongoid and validation is not needed
anyway.
Fixed a few code smells
Order dependencies by name
Simplified formula history layout
Only show the 10 most recent revisions of a formula