Move library sources to src/ subdir
Add test suite