Split code into example project and library project.

Libs install to environment variable PREFIX/include and PREFIX/lib.  The qmldir file is autogenerated from this and placed in QML2_IMPORT_PATH.