mod_rest: Add support for mapping of XEP-0313 query iqs
This module writes out a traceback to `traceback.txt` in Prosodys datadirectory (see `prosodyctl about`) when the signal `SIGUSR1` isreceived. This is useful when debugging seemingly frozen instances incase it is stuck in Lua code.