Improve package build script. Make work with git instead of SVN. Add replacement calls and install the listener script.