Fix accidental assignment.
Use account's send_login_instructions to resend welcome email

The send_login_instructions also calls
LifecycleMailer.deliver_login_instructions but first makes
sure the security_key is set.

It's possible for an account to be created without a key,
which causes problems if the welcome email is resent later.
Test for existence of organization.id in query results

On organizations other than the 'primary' the
Organization.populate_members_info method is called with account to
exclude

If they are the only member of that organization, it will then be
excluded from the query results because we're performing an inner join and
there's no matching rows on the accounts side of the query.

This tests for it's existence and sets the members to an empty array otherwise
Rename moderation_date to moderation_approval

When an annotation is approved isn't relevant at this time.  However we
do need the ability to mark an annotation as approved/disapproved or
tell whether it's been marked at all or not.
Accept a list of note_ids=>moderation_status

Since notes may now be marked as non-approved, we have to pass the
status to the controller
Moderation by check-box moderation toggle.

This implements a tri-state box.  By default it's grayed out, but may
then be checked or un-checked.  Once it's manipulated it does not return
to it's indeterminate (grayed out) state.
Approve All button to work with toggling methods
Merge branch 'annotation-moderation' of github.com:nathanstitt/documentcloud into annotation-moderation