Dockerfile - Layout and plugins

reorganized minor parts of the script.
Added autogen stuff, since we are building from git releases