New php for listing folders added. After refactoring client side it can be used.