MODIFIED: removed (undocumented) attribute_goal/2 hook, making
attribute_goals//1 the only way to project attributes

Previously, attribute_goal/2 was supported (though never documented
and therefore not used anywhere) as well. Experience has shown that
the DCG version is the only interface that is needed in practice. It
also leads to more elegant code when several goals are produced.