switch affiliates file to uploads folder
5.3 compatibility fix for access 'basedir' of dict
save affiliates in affiliate file
Merge pull request #158 from clef/move-affiliates-file

Write affiliates to DB