Flagging of rules is back

This uses AJAX, not sockets.  The downvote it creates happens through the socket, however.