Pulls in various bugfixes from the last two years, including changes for openssl deprecation. Signed-off-by: Karl Palsson <karlp@etactica.com>