Affiliate manager v1.9 changes: Code now only runs if post message is new or edited.
Affiliate manager v1.8 changes: Fixed issue with adding affiliate code when URL has existing query variables.
Affiliate manager v1.7 changes: Now using finder for performing database queries.
Affiliate manager v1.6 changes: Now using finder for performing database queries.
Affiliate manager v1.5 changes: Updated setup to use schema manager.