add Lock class for use master-shadow cron scripts, add class Error\ErrorsLogCollector for write and collect errors