fixes #2810 - more restful puppetclasses json in API
squash this commit
squash this commit