Code cleanup - Refactor utils.get_services()

The code cleanup is not done yet, there is still a big mess but situation is better now.

* Refactor get_services()
* Refactor get_hosts()
* Use constants instead of magic strings wherever possible
* Add a bunch of unit tests for the refactored functions
* Taking advantage of latest LivestatusQuery (so update pynag)