Add update hooks to pkgupdate
We are want to invoke schnapps every time we are going to perform update. These hooks are introduced to implement this requirement in some general way.
We implement two hooks for now. preupdate hook is executed before updater does any changes and postupdate hook is executed after updater done all planned changes.
Tests are added as part of system plan test.