Modified companeis/delete middleware logic

* Installed async module
* Added errors/RefError