Update patch set 1
Patch Set 1:
Lexical category and lexeme language validation is quiet ugly.
That's because I want to create new HTMLField type HTMLItemReference in Wikibase and use it here, so I decided not to waste time on it now.
For the same reason I didn't add error messages to language file - they will be generic and belong to Wikibase.