Allow scheduler to connect to a poller by https

If use_ssl is enabled on the poller, connect by https instead.
Ensure we have the proper poller url in scheduler
Merge pull request #1207 from dmsimard/scheduler_ssl

Fix: Allow scheduler to connect to a poller by https