Allow using SSL

Hi @sixdayz  I added SSL support so your bundle can also be used when no http is available.