E315/E4 - Score cache completion

The score cache works everywhere it can be used. Caution: the unit tests can't be run with rake for now, the test_db dump has to be loaded and then run with "ruby score_test.rb" or "ruby score_cache_test.rb". It's a pain but the only way we could get things going.  We weren't sure where to put them so we left in the unit/test folder.