Added service object to import entities and a CLI using it

Indeed. That's somewhat annoying about the `Command` class, though it does not matter much, since we break out of it anyway.