mainloop: restore priority arguments to *_add() calls

The original Mainloop API had an optional priority argument at the
end of idle_add(), timeout_add() and timeout_add_seconds(). Restore
support for it.

https://bugzilla.gnome.org/show_bug.cgi?id=726333