some work on updating photo threads for Red
Merge branch 'master' into photothread
Merge branch 'photothread'
change the way profiles are imported