Make runinenv a template
First working version of full build
Add debug to staging config