Refactor/make dist

This merge request reduces the filesize of the browser bundle `bitauth.browser.min.js` from 568K to 289K.