hooks: Add a rebase hook

The rebase hook is similar to the persistence hook, but applies the
changes to a new layer, by applying the delta between the previous layer
and it's base.

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
travis: Fix job

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>