Refactored routing code.
Added delta-application to rules.
Added rule application route.