Merge pull request #9 from mduplouy/dev

Dev
Big refactoring
Fixed get_called_class scope
CS & Fixed closure for php 5.3
WIP refactoring
Updated command
Merge pull request #10 from mduplouy/refactoring

Refactoring
Removed last getModels() calls
Merge pull request #11 from mduplouy/refactoring

Removed last getModels() calls
Merge pull request #12 from mduplouy/master

Merged master to dev branch