validator rules now use dash instead of underscore

The old rules not_empty and valid_number are now not-empty and
valid-number; the deprecated versions have been moved to legacy.

Some formatting fixes have also been performed.