Expose classifyShortText() API

While there, also fix the way in which we *use* JAX-RS so that the initialization is only performed once at the beginning, rather than each time we receive a request.

I needed to merge this with my existing code that I already had committed.