deps: Added to check we have necessary extensions installed
mail-retrieve: Check for deps before doing anything else
mail-retrieve: Moved to mail.php
mail.php: Split functions into cache.php and utils.php