Allow a placeholder attribute to be specified on the edit widget

Also fix some problems with handling of the class and style attributes
Style tweaks for the field editor