More restructuring

Created final, more sensible directory layout and  replaced qmake with
cmake