Return a proper hash of files in the assignments.

This deprecates the old `tests` and `test_file` keys that get returned
from the API endpoint, but I'm leaving it in so that old command line
clients still work for people who don't care about scala or stub files.