Improved buffering logic and added loading bar.

https://github.com/ammoio/ammo/issues/96