Repository:: add code for the open(...) pair
Remodelate async macros; fix some leaks

Asynchronous wrapping can now be considered stable.
Important fixes at macros
Repository:: Finish open(...)