Adds object creation for model with m2m relationship with through model

Solves the issue #25.