Fix missing entity_id in index-post

Fixes #533 
There won't be an entity id if there are multiple entities uploaded. I think we need to swtich based on whether we get /projects/ or /entities/ back in the Location and refresh accordingly. This will work if it is a single entity though. Thoughts?