Got access to behaviours and types.

We totally dropped returning iterators, becuase WAY TOO MUCH PAIN!!!!!
So now we just return the list, and whoever wants it can do the iterator
themselves. We also added in a accessor for individual entities by id. So
that's nice.