Clearer code layout

Moved demo app files to their own directory. Updated .gitignore file. Fixed demo app compilation and build issues.