(#20787) Do not generate NetBIOS name service requests

Previously, we were constructing an ADSI connection uri using the local
computer name, e.g. 'WinNT://hostname/Administrator,user'. However, Windows
performs a NetBIOS name service request (NBNS), one request for each ADSI
connection, which is very slow when enumerating users and groups.

Simply using '.' to denote the local computer eliminates all NBNS
requests. This reduces the time to run `puppet resource user` from 198
seconds to 3.1 seconds for 39 users, and from 98 seconds to 2.8 seconds for
16 groups.

Note we still have to use the fully qualified uri when adding/removing
users from a group, though it does not result in NBNS requests.
Merge pull request #1663 from joshcooper/ticket/stable/20787-adsi-performance

(#20787) Do not generate NetBIOS name service requests
Revert "Merge branch 'cprice-puppet-bug/3.0rc/15187-log-fatal-errors-to-console'"

This reverts commit 8d99bcbe6ebe6ca15868334bb52349911b58598c, reversing
changes made to 7d6515f076715c1feab0addc99312c42fb8b578c.

This change had two unintended side effects:

1) 20900 tagmail from 'puppet agent --onetime' run as a cron job begins
sending additional emails of verbose logs.

2) 20919 cron job of 'puppet agent --onetime --no-daemonize' produces
additional verbose logs to both console and syslog.

Issue #1 occured because the 15187 patch caused agent log level to
switch to info by default.

Issue #2 was due to the above log level issue, and the fact that by
default a console logger was also opened for all agents, which does not
get closed if --no-daemonize is specified.

Reverting fixes both of these unintended logging issues by returning to
the logging behavior seen in 3.1.1.
Merge branch 'ticket/stable/20900-revert-agent-console-logging' into stable

* ticket/stable/20900-revert-agent-console-logging:
  Revert "Merge branch 'cprice-puppet-bug/3.0rc/15187-log-fatal-errors-to-console'"
Merge branch 'stable'

* stable:
  Revert "Merge branch 'cprice-puppet-bug/3.0rc/15187-log-fatal-errors-to-console'"
  (#20787) Do not generate NetBIOS name service requests