A bit of refactoring and completing the integration test
Adding more integration tests for replaceLinks
Allowing new target entities in replaceLinks()
Making replaceLinks transactional
Making link() transational too
Added unit test for missing primary key in replaceLinks
Adding a unit test for BelongsToMany::replaceLinks
Documenting new functions