Reorganized the files to make the webroot clean.
Refactored to permit it working in different subdirectories.
Merge pull request #5 from hopeseekr/relative_dirs

Refactored to allow the app to live in arbitrary subdirectories.