Reorganized files into subdirectories.
Build common code as base library for apps.
Merge pull request #4 from murrekatt/develop

Structure cleanup and base library for both programs