Add before and after hooks to enable processing before and after the instance is created and before/after a webapp is deployed