Fix entity post to /4/entities

To handle things where the project_id is inside the entity rather than
part of the URL.