Add abstract factory to create entity services
Refactoring BaseService.php, BaseServiceFactory
Fix bug in the class JSTestCase