Fix Notes if folder contains files other than text

fixes #38
fix unit tests and add one for get of an image
Merge pull request #39 from owncloud/fix-notes

Fix Notes if folder contains files other than text