Move partner wrapper logic to wrappers.py

I think it really belongs there.
Adapt select_related to new relation
Introduce StockRecordController

Answers questions about a product's stockrecords, including selecting
the "primary" one.
Codebase uses StockRecordController now
Make tests pass

All tests, apart from dashboard ones, pass with the OneStockController