Add scanner plugin support and various fixes

Update the configuration to support loading user defined plugins which implement a Scanner.

Also:
- fix dependencies of makefile distfile target
- fix match end index
- add tests for core
- stop calling the benchmark script as part of make test