Feature/get field type for relation fields

* support non integer primary keys of related models
* test commands proxy  `--capture` parameter to py.test
* django_optional_relations flag allows to make relation fields optional