Factor RPC logic out from session (Qt client)


git-svn-id: svn://svn.transmissionbt.com/Transmission/trunk@14405 f4695dd4-2c0a-0410-b89c-da849a56a58e
Add missing <QDebug> include (Qt 4 build break)


git-svn-id: svn://svn.transmissionbt.com/Transmission/trunk@14406 f4695dd4-2c0a-0410-b89c-da849a56a58e