move builder code to upass-common, it will be reused in upaas-tasks