Moved sources from cwt-core project.