Structuring the code as a Qt project

Converting unit tests to QTestLib