Foreign key save order

Issue #10
 - Split the fk save into separate types of fk
 - Save order now m2o, entity, o2m, then m2m
Merge pull request #43 from magnetfruit/issue10

Foreign key save order