Extract basic common classes

Extracted yok, logger, errors and file-system