First pass of interpreter for declarative handlers

This fixes #15, by resolving merge conflicts.