Automatic notification of migration

**[untested in production]**

Includes pre & post install/update scripts for upgrading via npm to do database migration.

Currently just echos, but includes developer docs.

Any ideas on how to test this, I'd be grateful (though I suspect I'll just chuck up a dummy npm module to try out with).