This is just a quick note to those who might run into this issue.
We upgraded to 1.7 SDK and it seems that this does not work with it. When trying to get the deployment information ("Get Deployment" in the logs) you will get following error:
The HTTP request was forbidden with client authentication scheme Anonymous
I took the source code and compiled it against 1.7 SDK and now it works. Unfortunately after that it doesn't work with 1.6 SDK anymore.