Adding multi-bin support for files that contain multiple objects and lots of other fixes in libr/bin