Preparing for phar releases

- [x] Implemented `box` approach for phar distributions: https://github.com/box-project/box2
- [x] Refactored code to better namespace