Update/bugfix

Adds versions to config, allowed environments per app, many bugfixes