Prefer CPID with active beacon for primary CPID
Prefer CPID with active beacon for primary CPID

In a situation where multiple CPIDs are detected,
Researcher should prefer CPIDs with an active
beacon over CPIDs without an active beacon when
determining its primary CPID. This change will
select the first CPID with an active beacon in
the project list, or if there is no such CPID,
it will select the last CPID in the project list
as before.

caraka/gridcoinresearch,caraka/gridcoinresearch,caraka/gridcoinresearch,caraka/gridcoinresearch,caraka/gridcoinresearch,caraka/gridcoinresearch