Split codebase into lib and executable projects

Nothing exciting just the following changes:

1) Split into .so lib file project and executable project.
2) The lib project places the .so in the central libs location (based on environment variable) and the qmldir in the QML2_IMPORT_PATH location.  The qmldir is generated automatically through the dark magic of qmake