(CE-576) Add tokens to protect against CSRF on SemanticForms

Backports security fix from upstream until we can update SMW.
Merge pull request #2514 from Wikia/CE-576

(CE-576) Add tokens to protect against CSRF on SemanticForms