Rework to make container generation work more swift.

~12sec on empty db
~6-7sec on existing db

- also reworked state files to keep configuration mainly at the 'run' stage
- db variables can be overridden with -e flags, e.g:
  docker run koha_docker -e KOHA_ADMINUSER=hal