Added service object to import entities and a CLI using it

This method is necessary because you don't construct the object yourself, right?