Feature/master/gh 121 deployment postrun

This is based on GH-232.