Add registry to keep global data.
Rewrite authorization with HTTP client.
Add sessionId to sendPdfTask.