Initial relations experiments.
Some test fixes.
Closes #82.
Closes #83.
Further simplified error handling. #82.
Added documentation for relations.
Merge pull request #80 from jmdobry/feature-relations

feature-relations