Browser packing algorithm for BEM. Based off of Browserify's browser-pack and duo-pack