Refactoring prior to implementing confiburable building environment

See https://github.com/vibornoff/asmcrypto.js/issues/25