Refactor of client library to use Soap for login and get compilation working