add dir-locals.el and reindent cf-dc-api code