Moved host specific logic into host class.
Added support for services.

This patch adds support for ipa services. Some refactoring was needed to
group commonalities needed to support the new resources. This patch also
changes a few miscellaneous things which were needed to support the new
code. The examples were also updated to show the service resources.