Refractor InlinePie and Perfdata helper

Refractor InlinePie methods for better usability, fix several coding guideline
issues and fix some typos
Return null for empty DNS query results
Throw Ldap\Exception when something goes wrong in a Ldap connection