etcd: ensure data dir is writable

etcd checks that the data dir is writable by writing and removing an
empty file to the data dir during startup and exits non-zero if that
fails.

fixes #876
Merge pull request #1439 from kelseyhightower/check-data-dir-permissions

etcd: ensure data dir is writable