Make bem-pr an npm package

- code cleanup and refactor
- .gitignore additions