Allow no device_classes to be defined.

Also a bit of refactoring to consolidate duplicate code.
Merge pull request #31 from zenoss/feature/noDeviceClasses

Allow no device_classes to be defined.