Completely refactored for use with Knockout.js
Completely refactored after addition of Knockout.js
Completely new file with M-V-VM architecture built around Knockout.js
Split into several different location files since os.getcwd() is not reliable in Flask/uWSGI environments
Removed direct references to database directory; now refer to settings.py