Big refactoring
Designed to simplify the code.
The logic of the code has not changed, the work was carried out only to reduce nesting code.
Merge branch 'master' of github.com:Sammaye/MongoYii

Conflicts:
	EMongoFile.php
Merge pull request #166 from Rathil/master

Big refactoring