Add the beginnings of an mwjs scripting reference

This can be processed into various formats, e.g. a manpage using

  $ rst2man mwjs.rst mwjs.7
1 job for master in 7 minutes and 28 seconds (queued for 4 seconds)