Subscription free version is available here:
Have fun programming with XML from the Box
Host name, account details and XID in an XML file?
It's proven to reduce database queries and is easy to read even for non-programmers.
Programmatic login and session management using PHPSESSID (or XID?) for sessions.
This module parses 50e0806aeb sashbam