Update p12n-extract and productization view to use refactored JSON
API: return 400 and better message for missing entity

Fix issue #380
Merge pull request #393 from flodolo/productization

Update p12n-extract and productization view to use refactored JSON
Merge pull request #394 from flodolo/issue380

API: return 400 and better message for missing entity