Add main view
Refactor user model
Put environment-specific-values together into main.js