Implement __repr__ hook for various classes

This improves usability when working with instances in a REPL
environment.
Changed: added more information to repr of relations
Changed: using PROVN representation for the repr of Literal
Fixed: formal_attributes returns None for non-existent attribute values
Merge branch 'cbmi-repr'