Changes to override express view as a middleware

Also,
Code clean up. 
Fixing projects that broke in prod mode

- [ ] Merge after publishing an equivalent version of kraken generator