HUE-950 [core] Doc Model

Upgrading to the new trash and permission API
Converting the Pig app, Beeswax, Impala and Oozie apps