VE-1171 Set up VisualEditor link in user profile actions
Remove unused variable
Move common code into functions
Move more common code into functions
Consistency of VisualEditor naming (no abbreviations)
Merge pull request #3882 from Wikia/VE-1197

VE-1171 Set up VisualEditor link in user profile actions