At last, a base class for service clients
Centralized service connection configuration stuff, moved autogenerated JS to a different file and a new contextprocessor