Fixes in Client class

* Fixed bug in access.js/virtual, issue #76
* Refactored Client class
Fixed circular redirections

* Fixed circular redirections mechanism, issue #77
* Added example for virtual folders
Merge pull request #78 from tshemsedinov/client

Cumulated stable updates from "client" branch #1