2 fixes and a few unit tests

Changes to pull

* Fixed: GetResource would generate a 500 when a file was not found. Now it returns 404; Added unit tests
* Fixed: results-index's HTML linked to files that were removed in a previous UI version and included in includes.js