Feature/foreignkey ordering

Various fixes, notably ordering on foreignkeys.

Quick q: how do feel about using field__relation in the ordering (instead of the field.relation used here) - this might be more constant with django.
 
Thanks!