Dump diags when save failes.

DO NOT MERGE INTO MASTER!
Fix label conflicts in test cases
Force dump of API errors.
Avoid label conflicts in permission tests
Revert "Force dump of API errors."

This reverts commit ceffe6418236eb6b2dc55c1ab314448ced369d03.
Revert "Dump diags when save failes."

This reverts commit 81dc26a98516d2d7371453c0b8ef5af375577ed5.
Make travis run with --log-tap and no API tests
Error details when saving fails in EditEntityTest.
Avoid hard coded entity ids in several test cases
Merge pull request #3 from wmde/fixtravis

Improve tests so they pass on TravisCI