Fixes #3601: Use secure websockets if available

This will need testing since I haven't tried with certificates yet. It
would also be nice to have a PR in puppet-foreman to use the same keys
as apache.
That would greatly simplify life, but since it's hard to detect which certificate is used (since Apache handles that) and if the permissions are correct, for now the best we can do is recommend the user to set that up.