Simple runtime-configurable applications

This pull request adds an internal module for creating simple runtime-configurable applications that can take on two different values. The interface is abstract so it will work both for policies and predicates (see #345).

Depends on #342.