Fixed import phonebook

Closes #549
Added test dc HTTPS support