Allow some instance polling periodic tasks to hit db slave

If your deployment has a slave configured, poll_*instance* periodic
tasks will send their reads to the slave. If you have no slave
configured, there is no change to behavior.

Note for developers, I have targeted all the easy tasks. By this I
mean tasks that were already using the InstanceList object and the
get_all_by_filters or get_all_by_host methods. I will slaveify the
other tasks in seperate reviews since they also require conversion
to using objects.

Change-Id: I4bead5d350d633d726d4564b4bc1baec2e2977b7
Partially-implements: blueprint periodic-tasks-to-db-slave
The private method _text_node should be used as function

If the class method does not reference any of the class attributes
it may be more clear to define the method as a static function instead.

Change-Id: I273e00fc4ab6fecafcd7bdeaf3b809a6688025c5
Merge "Allow some instance polling periodic tasks to hit db slave"
Merge "The private method _text_node should be used as function"