Change to using local `raw` library and other minor housekeeping

* Changed some tests/examples to use local `raw` library.
* Moved `demo` and `clinfo` into a toplevel `examples` folder.