Implemented cURL parts
Creating temporary directory in OnPluginStart() now for performance reasons