Create entity from resource. Closes #130.