Adds indexinf for hosts in agents.
changed action for adding index from method to `delayed`
removed index method due to possible race conditions
added indexing method
removed addin, was not needed.
db indexing added as library method.
updated index create to use library method
Merge pull request #45 from cloudnull/DE167-Grizzly

Merged automatically by jenkins after successful build test