Add '/languages' JSON endpoint
Standardise transserver error handling