Use OpenSSL::Digest instead of deprecated OpenSSL::Digest::Digest

This gets rid of the "Digest::Digest is deprecated; use Digest" warning when using ruby 2.1
Has always been on the table to be deprecated: https://github.com/ruby/ruby/blob/ruby_1_8_7/ext/openssl/lib/openssl/digest.rb#L51
Deprecated as of: https://github.com/ruby/ruby/pull/446

Also cleaned up whitespace and formatting!