Move webpack config to config, use NODE_ENV.

Closes #25 
Closes #29