Implement DirectoriesController#edit.

Current spec status: 266 examples, 0 failures in 2.34 seconds.