Merge pull request #46 from KingYes/master

I think it's better code.
Move affiliate action links into separate column. #44
Tweak affiliate column widths. #44
Make affiliate columns sortable
Change unpaid referrals to unpaid earnings to be more clear
Add better search options to referrals table
add referral ID search and add contextual help for referrals
Tweak referrals contextual help
more contextual help
Tweak the export referrals message
Don't let referral earnings or referral counts go below 0
Set  to empty string
Allow the date range to be left blank when generating affiliate payout
Disable the General tab and remove the recount tool for now. We will introduce it if it ends up being needed. #4
Improve affiliate dashboard
Rough affiliate URL generator. #21
Add JS for live generation of ref urls
Change URL generator message
Account for query vars in urls for url generator
prevent divide by zero