When saving a related model, check if it has a url property, else treat it as pure JSON. Closes #2