[untested in production] automatic notification of migration

Includes pre & post install/update scripts for upgrading via npm to do database migration.

Currently just echos, but includes developer docs.
prevent accidently run of commit build-script
fixed merge conflict