United client- and server-side validation of float (closes #1430)

This pull request unites client-side validation of the 'float' rule with the server-side counterpart.

The problem was in failing validation when a comma was used as a decimal point and/or spaces used as thousand separators. Both are handled on the server side by stripping spaces and replacing comma with period.