build: don't execute packaging on npm install

Fixes #217

Closes #260
refactor: use Object.create polyfill

Closes #262
refactor: use pratt parser for if expressions