Split code into a redis lib and a test application.

Also added facility for putting .so into one location with the qmldir in
another (automatically).