auto generate entity ID on creation if none supplied 

addresses #567