Merge branch 'master' of https://github.com/easydigitaldownloads/Easy-Digital-Downloads into easydigitaldownloads-master
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
Allow email as username during login

RESOLVES easydigitaldownloads/Easy-Digital-Downloads#1827
Merge pull request #1828 from michael-cannon/master

Allow email as username during login
Download earnings and sales not being decreased properly when more than 1 download is purchased (quantities)
change $download to $item
Check for existence of $item['price'] first
Added extra check
Pass payment_id to edd_get_price_option_name()
Merge pull request #1842 from elliott-stocks/patch-9

Pass payment_id to edd_get_price_option_name()
Improvements
Merge pull request #1834 from sumobi/master

Download earnings and sales not being decreased properly when more than ...
Fix merge conflict
Merge branch 'release/1.9' of github.com:easydigitaldownloads/Easy-Digital-Downloads into release/1.9