Add tests and examples to the project. Also, normalize directory structure.
Build process should work both in linux and in mingw environment.