Allow callables as alert targets in the config

Enables users to specify any python callable as the second argument for
alerts in the configuration file. As a consequence, adding custom alert
functions is now a configuration property and not a code change anymore.