Added support for reading appKey and userId from configuration file