functionalize enact and getcurrenttemp, add send-tempbasal-Azure if AZURE_SQL_API_HOST exists, and fine-tune failsafes
functionalize enact and getcurrenttemp, add send-tempbasal-Azure if AZURE_SQL_API_HOST exists, and fine-tune failsafes

Conflicts:
	loop.sh

scottleibrand/openaps-sh