Added pre and post update scripts

Can be configured to e.g. update plugins or the like.