BGR-262: generate entity_id early for BadgeInstances so we can use it in image storage_name
BGR-262: generate entity_id early for BadgeInstances so we can use it in image storage_name

concentricsky/badgr-server,concentricsky/badgr-server