Move common sources into src subdirectory
Prepare for tests