Update documentation.
Refactor relations API.
Add aliases for relation methods.
Default attributes to null instead of undefined.