Added https support and ability to specify port for collector (#81) (#72)