move main config loader into upass-common