Large amount of refactors.
Adjust project archecture.
Changed log format.
Added functions for task system.