Revert incompatible Swagger work from 2.2.x.  Will be reinstated in 2.3.x.

Reverts:
* 462dc01f981aed89b2a196bbbe28604d1f937025
* 93358935e40df9eecfdd608e6696e3cbd68cf4cc
* 34e241298c2e89843e58a51ebab255f0fb76d20b
* 71f39b06f82e7bca388f2d08af3a4d2e5e80f54d
* 5ef55e18d8f0ea6f550580a624070a0ed473337c
* f93e7acd6bc513e77408246159841d2c40af3d5a
* 3aadd83d7b3e346ea00553b4e154dcfed6109338
* 41905f6cad9277c0693f8319e90cfab39f7f1437
* 880f0c640fe49f8f31f2b53f2e50681dc793b7e7