Move Oozie's “marking directory done” into separate workflow

With this refactor, the upcoming addition of webstatscollector can
reuse the code to mark its directory done upon success.

Change-Id: Ie557acff61b907e0a43c45f0ca82b5bf43a800d6