Implemented __hash__ function for key objects.

Overriding __eq__ blocks inheritance of __hash__ in Python 3.

Fixes issue #55
diff --git a/tests/test_key.py b/tests/test_key.py
index 833a6aa..afefa3a 100644
--- a/tests/test_key.py
+++ b/tests/test_key.py
@@ -59,3 +59,14 @@
                                         exponent=exponent)
         self.assertEqual(39317, p)
         self.assertEqual(33107, q)
+
+
+class HashTest(unittest.TestCase):
+    """Test hashing of keys"""
+
+    def test_hash_possible(self):
+        priv, pub = rsa.key.newkeys(16)
+
+        # This raises a TypeError when hashing isn't possible.
+        hash(priv)
+        hash(pub)