[WIP] Add an entity framework endpoint
Finished EntityFramework integration as well as some refactoring to remove a bunch of duplication
I suspect the transient entity framework bit won't quite work yet, but we shall see...