Bug fixes and shift from http to https to support ssl