Lots of changes - Removed all code related to get parameter banid. Changed code for the magic hash for the api, added method for mapping extern affiliate id to internal, added logging for api