Add more error properties to network API
Add two new error properties in the JSON message
- errorcategory: the category as a string (e.g. server, irccd, plugin)
- errormessage: the error message (e.g. plugin not found)
Update unit tests to test for errorcategory as well.