VE-1564 Port user options API endpoint from upstream MediaWiki
VE-1564 Use options API call to set whether user viewed dialog