Fix api.post call in mediawiki.api.edit.js

api.post does not have 3 parameters, fixed this by passing a object with
ok and err as key.

Fixed spacing while at it

Change-Id: I0ffa761aebd11c00380a8637d259480992e018d4
Merge "Fix api.post call in mediawiki.api.edit.js"