Added transaction context to commands. Also added 'use_ssl' config option. Till now this was always on.