Changed database sessions are  closed in finally blocks to prevent connection leaks if an error occurs in a request.
Implmented most of the addSessionFiles SOAP operation.