Include 'pending' flag in account's JSON

The 'Manage Accounts' dialog wasn't indicating which accounts were
pending due to the Organization.populate_members_info not including the
'pending' boolean.
Account is non-pending if 'identities' are present

Had transposed the and/or clause for identities check.
Changed to use delete_if for reject for removing non-exposed fields.