Added custom dependencies config

Dependencies configuration formats are now multiple. The existing
PHP-based configuration is still valid, but it is also possible to use
a custom format that is more concise and less error-prone.