Fix nearestSide method
Move entity spec to models dir
Relationship model spec
Endpoint model spec
Endpoint reports to entity