Configuration for YCM completion.

Add cmake command to generate json compilation database.
Add .ycm_extra_conf.py slightly modified from ycm project to read database from root folder.
You will need to create a link to the file generated in the build directory (compile_commands.json).