Implements local prepare blocks and new finisher step

Prepare/Finish steps can now also be executed inside css/js
blocks to copy files before/after the merge step. Specially
integrated for the watchdog process (otherwise these steps
would not run at all in watchdog mode). Needs a refactor.