First half of directory_tests now pass.

Mock CDN initializes and "authenticates" properly, too.