Javascript validations reworked for SimpleWikiResource and SimpleHTMLResource

Code update on SimpleWikiResource, SimpleHTMLResource. Javascript
validations reworked and moved into StyledMacros20 (included validation
for wysiwyg editor content).