Updated to version 1.2.2

Changed to SSL connection, added analytics, minor bug fixes.