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

Backports security fix from upstream until we can update SMW.