Add support for Thunderbird automatic configuration

Resolves #114
Merge pull request #287 from lvillani/thunderbird-autoconfig

Merge pull request #287