Fix discarding of comments in the diff viewer when double-clicking flags.

When double-clicking on a line number to add a comment in the diff view, this
is registered as two seperate clicks. The comment dialog opens on the first
click, and then on the second click the dialog is closed, the comment is
deleted, and then the dialog is reopened (but no new comment is created). So,
clicking save would not save the comment.

To solve this:
Before the comment dialog is shown, first check to see if there is already a
comment dialog active. If there is, and it is a comment dialog for the same
block as the one that is about to be shown, then don't show a new comment
dialog (keep the old one as it displays the same comment). A double-click is
registered as two clicks for the same comment block, and so the first click
will show the dialog, and the second will do nothing.

Testing Done:

Tried all of the following (in Firefox, Chrome):
 - Adding comment by double-clicking on a line number and comment flag
 - Adding comment by single-clicking on a line number and comment flag
 - Adding comment by selecting a range of lines

All JavaScript unit tests passed.

Bugs closed: 3437
Reviewed at https://reviews.reviewboard.org/r/6340/
Added instructions for running RBTools unittests to Getting Started guide.

Although this is a ReviewBoard documentation, it would be helpful to have the
instructions for running RBTools tests in the Getting Started guide.

Reviewed at https://reviews.reviewboard.org/r/6347/
Moved emitting user_registered signal to djblets, to prevent sending false emails.

Emitting this signal from the registration view wasn't correct, since that view
had no way of knowing whether or not registration was actually successful. Now
that djblets emits this signal instead, we can ensure that the new user
registration emails are only sent when a registration actually occurs.

Testing Done:
All unit tests pass.

Submitted blank, invalid, valid registration forms while:
1. no user was logged in.
2. another user was logged in

Bugs closed: 3438

Reviewed at https://reviews.reviewboard.org/r/6336/