Added in error handling to detect circular/self imports when sorting services (should raise a DependencyError).
Added in logging to the CLI to log out any DependencyErrors.