Use grunt env and preprocess

- adjust our main.js depending on environment
- update npm start grunt task to run preprocess