Use env vars for settings
Mostly fixed up statics
Basic template ready.