Use mw.user for edit token, remove unused stuff in submission code