Split out options. Also added some debug logging.
Removed debug lines. Also removed very odd problematic line. Shouldnt need to exist.
Merge pull request #6713 from s0undt3ch/develop

Code fixes
If not passing a `hostname`, use `None` in `getaddrinfo`.

On my machine, passing an empty string to `getaddrinfo` raises errno 2, "No such file or directory". Use `None` if `hostname` is a string.
Merge pull request #6715 from s0undt3ch/hotfix/lookup_family-No-such-file-or-directory

If not passing a `hostname`, use `None` in `getaddrinfo`.
Merge pull request #6711 from robertkeizer/mysql_returner_fix

Mysql returner fix
4 spaces, not 2 spaces. Use single quotes,
move json decode wrappings to utils
Add state.pkg
clean up state package creation
clean up and add test=True capability to state.pkg
Include secondary IP addresses in ip_addrs{,6}

These functions were not iterating over the list of secondary IP
addresses, causing grains['ipv4'] and grains['ipv6'], as well as the
module execution functions network.ip_addrs and network.ip_addrs6 to
fail to include these IPs. This commit fixes that oversight.
Merge pull request #6719 from terminalmage/issue6656

Include secondary IP addresses in ip_addrs{,6}
Merge pull request #6716 from UtahDave/develop

4 spaces, not 2 spaces. Use single quotes,
`os.sep` is not callable. Add missing imports. Fix except `OSError` assignment.
Fix undefined variable error