mcfg: introduce the myip editor

unit tests OK
this is just the Python code, myip.sh needs to be packaged in the new location to make it work in installations
(cherry picked from commit af0992d9398821c14713cfef3e96d26b34fb27d3)
rpm: WIP, use /etc/kata.ini instead of earlier development.ini

this cannot yet work because /etc/kata.ini is not yet created
dev.rpm: need to set ckan extensions both ini template for prod and ini file for dev

WIP: cannot work yet, /etc/kata.ini not created
rpms: WIP, create /etc/kata.ini

building still fails, need to cherry-pick the unit test split for mcfg
mcfg: separate test cases such that the new case requiring manual preparation is not run during build

unit tests OK
rpms: bug fixes

updates to development.ini input for new mcfg replacements were forgotten
mcfg had a bug when using replace_by_ip
dev.rpm: 2 typos corrected
mcfg.rpm: myip.sh now packaged

building tested OK
myip.sh not yet removed from dev and prod.rpm
(cherry picked from commit 20669fc961c8a88289293e2ef7105f194571ad43)
dev.rpm: bug fix, circumvent problem with file protections
dev.rpm: stupid bug fixed in previous commit

I said it in the comment that we cannot use sed -i, but I didn't change the code
dev/prod.rpm: refactored, renumber some setup scripts in order to free up numbers for upcoming changes
dev.rpm: development.ini was still forgotten in 1 place
dev/rprod.rpm: run CKAN DB initalization after /etc/kata.ini has been created and refer to it explicitly

previous code did implicitly use development.ini
dev.rpm: bug fix, new script name introduced in provious refactoring not used by one caller
dev.rpm: remove all occurrences of %(here)s from development.ini

it doesn't make any sense after the ini file has been moved to /etc
I think the logging directory /home/ckan/pyenv/src/ckan/log configured there has never existed
moved to /var/log/ckan anyways (probably protections need fixing if anybody decides to use it)
dev.rpm: comment was forgotten from previous checkin
dev/rprod.rpm: run CKAN DB initalization after /etc/kata.ini has been created and refer to it explicitly

previous code did implicitly use development.ini
mcfg: myip parameter must be given even if not used

parameters in master.ini must match the parameters in the template
Merge branch 'uwe-wip5'