Add support for pickled api or pickled login saved to file.