Fix #17, ensure the keyfile is writable before creating a user

https://github.com/opscode/chef-server/issues/17 is the related issue.

This just ensures the file exists and is writable before creating the user.

Requires manual testing.
One issue is that this will create an empty file if the API request fails for some reason.