Allow configuration of data directory

We want to be able to choose the directory that elasticsearch uses to
store the data.