Fix default path to configuration file.
Refactor rules and actions.

- Move rules and actions and related code to rules.go.
- Create interface for Actions