Enable https redirect support and get IMEI

Enable support for https redirect, for example:
http://www.gmail.com -> https://www.gmail.com

Added ability to retrieve module IMEI.