You might want to check out Funambol.com (open source version). I have used it for synching Thunderbird w/Lightning and my TP2. However, development of Thunderbird outpaced the development of Funambol, so I had to set aside until things settle down.
Check it out and hopefully it will work for you. By the way, Funambol is free for personal use.
https://www.forge.funambol.org/learn/
Good Luck!