API now functional.

Models and API now functioning. Renamed locations to entities.