Make "hardware-detection" build

- move `.scr` file to `srconf`
- move `src/*` to `agent/` (the Makefile.am is regenerated and the C++ agent does not work then)
- updated testsuite to compile