Link required libraries into component libraries

This will make it easier to create different parts of the application
Replace the two build scripts with i-bot's

I realy like it, even tough I had to tweak it a little
Removed removal of build directory in "setup"

Turns out, it wasn't even necessary
Add debug option to cmake.sh

Change some other stuff about cmake.sh
Add FindJsonCpp.cmake

The package didn't shipe one, so I made my own
Merge branch 'build_improvements'