Directory auto-complete.

use `/rest/autocomplete/directory` as there might be more stuff in the future. Plus it avoids camel case which is a debatable subject ;)