Building cloud-based biometric services