Updated client to use https if protocol is https
Bump version to 0.2.2