Handle setting belongsTo relationships #133 #132

Should fix Issues #133 and #132. Still learning this stuff, so any feedback is appreciated.