Introduce edd_get_purchase_stats_by_user() and update other user stat functions to use it. #1177