Misc Cleanup + New Alert Functionality

Note:
- Added DATA_DIR global javascript variable. Bad idea? The full path
appears on the login page anyways...