Some fixes for new owncloud functionality
+ Small other fixes