Updating frontend to work with new challenge schema.

- FIXME: the code to generate file trees in the challenge view will not
  work with subdirectories and is only a temporary fix.