implement pre-build plugins, rewrite post-build plugins

this implies a number of changes:

* dockerfile si being copied in plugin, not in core anymore
* other similar actions should be implemented as plugins
* still can't pass configuration for plugins from CLI

Fixes #15 #16 #17