Bring synch modifications of API to new auth
hack to work around a circular import
added userprofile to test
modify test in line with remove of b64 encoded parameter images
run tests with default archive organisation