TODO
~~~~
- Multi-connection support
  Support multiple connection sharing same auth data and metainfo
  catalogue, with proper locking for using each connection in it's
  own thread.
- Make more functions public
  Seems like it will be useful not to conseal all data structures
  inside library and only allow simple interface. Some functions
  are definitely to become public.
