Start porting MAPI library from MonetDB Python driver

- get bytes
- put block
- get block
- challenge response
- login (partial)