Start porting MAPI library from MonetDB Python driver

ported, untested

- get bytes
- put block
- get block
- challenge response
- login
  - empty prompt: ok
  - ok prompt: ok
  - redirection: ok
    - merovingian: ok
    - monetdb: ok
- disconnect: ok
- cmd: ok