Adding support for folder upload. Currently only in chrome.

This is the code I use for folder upload currently it is working on OwnCloud CE  6.0.3 (stable)  but I suppose it will work on newer versions. It is used for about a week in the company I work for. 

Please comment.