Added API for Relations

Fixes #93

Conflicts:
	spec/factories/relation_factory.rb
	spec/factories/relation_type_factory.rb
	spec/spec_helper.rb