Improve error handling

* post notifications for file errors
* fix error handling when creating files
* use DEBUG macro for logging
Merge branch 'master' of https://github.com/codewhisper/eye-fi-server