Used service manager in CM_Elasticsearch_Type_Abstract and CM_PagingSource_Sql

- Refactored CM_PagingSource_Sql::getCount(), too