m2: import everything from __m2crypto

m2 have to expose all symbols from __m2crypto/openssl, not just lib_init
test_bio_file: port to new python3 IO

The bio_new_fp is barely usable in python3 due reworked IO, which is not
based on top of C FILE*, but on lower level system calls
open/read/write/close. Thus bio_new_fd shall be called.

In adition, bytes are used in in self.data
AuthCookie: port to python3

Deal with bytes/str differences - b2a_base64 eats just bytes, but rest
of code expect strings, which leads to str(bytes(foo, 'ascii'), 'ascii')
conversions when handling with hmac.

Change removed and deprecated SmartCookie to SimpleCookie

AuthCookie.isExpired: check if self._expire is float as you can't
compare str and float in python3

test_authcookie: remove deprecated failXY to appropriate assertYX
methods
MemoryBuffer: limit data argument to bytes only

test_io_buf: fix bytes/str issues again
Context.py: long does not exists in python3
test_db: use bytes
test_dsa: use bytes and hashlib
fix ec_curves and ecdsa tests

Use hashlib instead of removed sha and use bytes type
Use bio_new_file in openfile

The previously bio_new_fd does not work for unknown reason. I am not
sure if _new_file is a reasonable fix for python3 io not based on FILE*,
but ... it makes part of test_evp passing.
raise string error messages, not bytes
test_evp fixes

 * fixes some helpers in util.py to deal with bytes (h2b, octx_to_num)
 * fixes strange behavior of switch in pkey_get_modulus, where return
   must be called on the end of each case chain
 * fix almost two tests, module and bytes/string issues

Made two tests unconditionally failing
 * test_pem: hangs in pkey.as_pem
 * test_get_rsa: ditto
It is better to have failing tests, than hanging ones, right?
test_obj.py: str/bytes fixes
ignore pgp tests, due a lack of maintainer and test coverage
test_rand.py: bytes/str fixes
test_rc4.py: bytes/str fixes, import issue
test_smime.py: bytes/str fixes
test_ssl_offline.py: revert 2to3 fixes
document the weirdness of _new_fd/new_file approach in BIO.py
TODO file documenting remaining unfixed issues
Merge pull request #1 from mvyskocil/mvpython3

Fix some more issue with python3 (3.3) and M2Crypto