Add initial config and rule language implementation.

This adds the initial configuration and rule language implementation and ties them into the main application.