build: add libbitcoinconsensus files and hook up the lib build

Credit BlueMatt for libbitcoinsonsensus.h/cpp
build: add --with-libs so that libs are optional
build: add quick consensus lib tests

They should be hooked up in other places as well, but this is a start.
build: shared lib build should work reasonably well now