Performance tweaks

This PR adds some performance improvements by implementing `prefetching` of related objects (enabled by default) and assigning related objects by their id.

Increases version to 0.2.0.