As right-to-left implications are common in answer set programming, this adds support for using implications in both directions.
For clarity, this moves the formatting functionality related to formulas and terms into two separate files.