Correct _edd_log_payment_id value
Introduced edd_get_file_downloaded_count()
Updated purchase history to use edd_get_file_downloaded_count()