refactoring into libraries
adding databag support for hostclass-tags and hostname records