Change error counter names and api's to access them via an enum. Move the
getter/setter inside ErrorStats. Testcode changes to use the new api's and
remove 'test' from test-names and xmpp_channel code to use the new api's.