Context roots redone

Redoes the service mappings. 

I've run tests locally and it all works as I expect, can switch the urls by supplying a different endpoint argument.