Start migration to a usable build infrastructure

New cmake building process, supports MPI, but not TGP yet.
When building with cmake libnomad is now a dynamic library \o/.
The cli has been splitted to a separate directory.