Increased minimum php version to 5.4 so we can use JsonSerializable
Added entity models and implemented all entities endpoint methods.
Add the beginnings of unit tests