Fix adding directories
Do http authentication for getstatus/getconfig handlers