Prevent deletion of Commerce Types with existing content

This is a redo of the other pull requests.

- Small cleanups
- Dont allow removing entity types while they are still referenced
Remove entity_load() usage since it's no longer the recommended way.
Add a module configure link
Merge pull request #36 from Jbekker/commerce-type-deletion

Prevent deletion of Commerce Types with existing content
Merge pull request #37 from Jbekker/commerce-configure-link

Add a module configure link
As the text module is used in commerce product it will need to be enabled.
Merge pull request #38 from joshuataylor/commerce-product-text-depend

As the text module is used in commerce product it will need to be enabled