Finished Major Reconstruction.

Reconstruction effort separated the implementation from the library. All
framework is separated into a module that can be included by adding one
file. A stub may be generated to hook into the framework which is done
in testapp.