Fix Appveyor

This is based on #12 which is required for tests to pass on appveyor because tests which include Sockets / Streams and Threads seem work a bit different there.

I had to increase some `WaitOne`s in the `ApplicationServices*Tests` and add a try catch in `OnAuthenticated` for tests to pass.